Skip to content

Commit

Permalink
Merge pull request #33 from evanmcc/fix-more-regression
Browse files Browse the repository at this point in the history
fix regression affecting incomplete requests
  • Loading branch information
tsloughter committed Oct 16, 2017
2 parents 163ea1c + 02d92c0 commit e098dfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elli_http.erl
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ get_request(Socket, Buffer, Options, Callback) ->
get_request_(Socket, Buffer, Options, {Mod, Args} = Callback) ->
case erlang:decode_packet(http_bin, Buffer, []) of
{more, _} ->
recv_request(Socket, Buffer, Options, Callback);
NewBuffer = recv_request(Socket, Buffer, Options, Callback),
get_request_(Socket, NewBuffer, Options, Callback);
{ok, {http_request, Method, RawPath, Version}, Rest} ->
{Method, RawPath, Version, Rest};
{ok, {http_error, _}, _} ->
Expand Down

0 comments on commit e098dfd

Please sign in to comment.