Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

quietly handle other variants of invalid request lines

  • Loading branch information...
commit d65bce6308dc530c61950ccca05bf16669d81224 1 parent 3f8702a
Bob Ippolito etrepum authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 src/mochiweb_http.erl
4 src/mochiweb_http.erl
@@ -84,7 +84,9 @@ request(Socket, Body, MaxHdrBytes, Prev) ->
84 84 {ok, {http_error, "\n"}, <<>>} ->
85 85 request(Socket, Body, MaxHdrBytes, <<>>);
86 86 {more, _} ->
87   - request(Socket, Body, MaxHdrBytes, FullBin)
  87 + request(Socket, Body, MaxHdrBytes, FullBin);
  88 + _ ->
  89 + handle_invalid_request(Socket)
88 90 end;
89 91 {tcp_closed, _} ->
90 92 mochiweb_socket:close(Socket),

0 comments on commit d65bce6

Please sign in to comment.
Something went wrong with that request. Please try again.