aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_server/httpd_request.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-10-26 09:48:08 +0200
committerIngela Anderton Andin <[email protected]>2017-10-26 09:48:08 +0200
commit20af6471398302330073f9ee8325bc018e5959bf (patch)
tree748c22c08e199f7da4f3658d28d6622437bd4677 /lib/inets/src/http_server/httpd_request.erl
parent7fb796ab3636af53a7ef659099c1fb9fe37c1957 (diff)
parent15f71894d82af204eb10589339c3180579e55e20 (diff)
downloadotp-20af6471398302330073f9ee8325bc018e5959bf.tar.gz
otp-20af6471398302330073f9ee8325bc018e5959bf.tar.bz2
otp-20af6471398302330073f9ee8325bc018e5959bf.zip
Merge branch 'ingela/inets/not-chunked-esi/OTP-14656' into maint
* ingela/inets/not-chunked-esi/OTP-14656: inets: httpd - Fix broken handling of POST requests
Diffstat (limited to 'lib/inets/src/http_server/httpd_request.erl')
-rw-r--r--lib/inets/src/http_server/httpd_request.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/httpd_request.erl b/lib/inets/src/http_server/httpd_request.erl
index 0eaf073255..007d272323 100644
--- a/lib/inets/src/http_server/httpd_request.erl
+++ b/lib/inets/src/http_server/httpd_request.erl
@@ -306,10 +306,10 @@ add_chunk([<<>>, Body, Length, MaxChunk]) ->
add_chunk([More, Body, Length, MaxChunk]) ->
body_chunk(<<Body/binary, More/binary>>, Length, MaxChunk).
-body_chunk(<<>> = Body, Length, MaxChunk) ->
- {ok, {continue, ?MODULE, add_chunk, [Body, Length, MaxChunk]}};
body_chunk(Body, Length, nolimit) ->
whole_body(Body, Length);
+body_chunk(<<>> = Body, Length, MaxChunk) ->
+ {ok, {continue, ?MODULE, add_chunk, [Body, Length, MaxChunk]}};
body_chunk(Body, Length, MaxChunk) when Length > MaxChunk ->
case size(Body) >= MaxChunk of