Commits

Bryan Fink  committed d34f398

add special case for complete lack of all host headers

useful for netcat-style debugging

  • Participants
  • Parent commits ab37abf

Comments (0)

Files changed (1)

File src/webmachine_dispatcher.erl

         [HostPart, PortPart] ->
             {split_host(HostPart), list_to_integer(PortPart)};
         [HostPart] ->
-            {split_host(HostPart), 80}
+            {split_host(HostPart), 80};
+        [] ->
+            %% no host header
+            {[], 80}
     end.
 
 split_host(HostAsString) ->