Skip to content

Commit

Permalink
HttpError parses are returned as normal packets, not error tuples.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Nov 22, 2011
1 parent 2ffb00b commit caa6618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mochiweb_http.erl
Expand Up @@ -108,9 +108,9 @@ request(Socket, Body, Prev) ->
{ok, {http_request, Method, Path, Version}, <<>>} ->
collect_headers(Socket, {Method, Path, Version}, Body,
<<>>, false, 0);
{error, {http_error, "\r\n"}} ->
{ok, {http_error, "\r\n"}, <<>>} ->
request(Socket, Body, <<>>);
{error, {http_error, "\n"}} ->
{ok, {http_error, "\n"}, <<>>} ->
request(Socket, Body, <<>>);
{more, _} ->
request(Socket, Body, FullBin)
Expand Down

0 comments on commit caa6618

Please sign in to comment.