Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

check for Host = undefined in pick_host() #79

Merged
merged 1 commit into from

2 participants

@richcarl

We had some problem some months back where it turned out that Host could be 'undefined' in yaws_server:pick_host/4. According to Tobbe, it happened when there was no host header in the http request, if his memory serves him.

/Richard

@klacke klacke merged commit e1896ee into klacke:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2012
  1. check for Host = undefined in pick_host()

    Richard Carlsson authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/yaws_server.erl
View
2  src/yaws_server.erl
@@ -1345,7 +1345,7 @@ pick_sconf(GC, H, Group) ->
%% Compare Host against [] in case caller sends an empty Host header
pick_host(GC, Host, SCs, Group)
- when Host == []; SCs == [] ->
+ when Host == []; Host == undefined; SCs == [] ->
if
?gc_pick_first_virthost_on_nomatch(GC) ->
hd(Group);
Something went wrong with that request. Please try again.