diff options
author | Ingela Anderton Andin <[email protected]> | 2016-12-21 09:03:50 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-12-21 09:03:50 +0100 |
commit | 48ff78da8fdacf4fb1eecbaccfa65809cbbfa725 (patch) | |
tree | 0eec16963c97c3ac5c9405483148515d5f3972cb /lib/inets/src | |
parent | 420aa50e766560c3316a16695c8c3c1c46138aff (diff) | |
parent | 7aa231ee939df914473c44e07ab1c74041c8f589 (diff) | |
download | otp-48ff78da8fdacf4fb1eecbaccfa65809cbbfa725.tar.gz otp-48ff78da8fdacf4fb1eecbaccfa65809cbbfa725.tar.bz2 otp-48ff78da8fdacf4fb1eecbaccfa65809cbbfa725.zip |
Merge branch 'ingela/inets/httpc-stream/ERL-116/OTP-13571' into maint
* ingela/inets/httpc-stream/ERL-116/OTP-13571:
inets: httpc - Chunk size decoding could fail
Diffstat (limited to 'lib/inets/src')
-rw-r--r-- | lib/inets/src/http_client/httpc_handler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl index 2e7df8e424..bb500dbb46 100644 --- a/lib/inets/src/http_client/httpc_handler.erl +++ b/lib/inets/src/http_client/httpc_handler.erl @@ -493,7 +493,7 @@ handle_info({Proto, _Socket, Data}, {noreply, NewState#state{mfa = NewMFA, request = NewRequest}}; {Module, decode_size, - [TotalChunk, HexList, + [TotalChunk, HexList, AccHeaderSize, {MaxBodySize, BodySoFar, AccLength, MaxHeaderSize}]} when BodySoFar =/= <<>> -> ?hcrd("data processed - decode_size", []), @@ -503,7 +503,7 @@ handle_info({Proto, _Socket, Data}, {_, NewBody, NewRequest} = stream(BodySoFar, Request, Code), NewState = next_body_chunk(State, Code), NewMFA = {Module, decode_size, - [TotalChunk, HexList, + [TotalChunk, HexList, AccHeaderSize, {MaxBodySize, NewBody, AccLength, MaxHeaderSize}]}, {noreply, NewState#state{mfa = NewMFA, request = NewRequest}}; |