Permalink
Browse files

quietly handle other variants of invalid request lines

  • Loading branch information...
1 parent 3f8702a commit d65bce6308dc530c61950ccca05bf16669d81224 @etrepum etrepum committed Nov 1, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mochiweb_http.erl
View
4 src/mochiweb_http.erl
@@ -84,7 +84,9 @@ request(Socket, Body, MaxHdrBytes, Prev) ->
{ok, {http_error, "\n"}, <<>>} ->
request(Socket, Body, MaxHdrBytes, <<>>);
{more, _} ->
- request(Socket, Body, MaxHdrBytes, FullBin)
+ request(Socket, Body, MaxHdrBytes, FullBin);
+ _ ->
+ handle_invalid_request(Socket)
end;
{tcp_closed, _} ->
mochiweb_socket:close(Socket),

0 comments on commit d65bce6

Please sign in to comment.