diff options
author | Zandra <[email protected]> | 2015-11-20 10:17:37 +0100 |
---|---|---|
committer | Zandra <[email protected]> | 2015-11-20 10:17:37 +0100 |
commit | b190a53c020def1e72e49e30c66ccae822208eee (patch) | |
tree | 1186e0816d16f502fb8feab980993ee2177b2fec /lib/inets/src | |
parent | abaa4d89bd6e012ce50f21278c9bbcfc6a553b0c (diff) | |
parent | 00db647274f87aa87f4bb7245fc95a1effe72466 (diff) | |
download | otp-b190a53c020def1e72e49e30c66ccae822208eee.tar.gz otp-b190a53c020def1e72e49e30c66ccae822208eee.tar.bz2 otp-b190a53c020def1e72e49e30c66ccae822208eee.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/inets/src')
-rw-r--r-- | lib/inets/src/http_lib/http_chunk.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/http_lib/http_chunk.erl b/lib/inets/src/http_lib/http_chunk.erl index 2f8476a49d..9699856bf8 100644 --- a/lib/inets/src/http_lib/http_chunk.erl +++ b/lib/inets/src/http_lib/http_chunk.erl @@ -147,7 +147,7 @@ decode_size(Data = <<?CR, ?LF, ChunkRest/binary>>, HexList, AccHeaderSize, {MaxBodySize, Body, AccLength, MaxHeaderSize}) -> - try http_util:hexlist_to_integer(lists:reverse(HexList)) of + try http_util:hexlist_to_integer(lists:reverse(string:strip(HexList, left))) of 0 -> % Last chunk, there was no data ignore_extensions(Data, remaing_size(MaxHeaderSize, AccHeaderSize), MaxHeaderSize, {?MODULE, decode_trailer, |