aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorZandra <[email protected]>2015-11-20 10:17:37 +0100
committerZandra <[email protected]>2015-11-20 10:17:37 +0100
commitb190a53c020def1e72e49e30c66ccae822208eee (patch)
tree1186e0816d16f502fb8feab980993ee2177b2fec /lib/inets/src
parentabaa4d89bd6e012ce50f21278c9bbcfc6a553b0c (diff)
parent00db647274f87aa87f4bb7245fc95a1effe72466 (diff)
downloadotp-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.erl2
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,