diff options
author | Erlang/OTP <[email protected]> | 2017-09-13 10:36:08 +0200 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2017-09-13 10:36:08 +0200 |
commit | c24f636d3326f75d7d6c4206e1888f2e5420cec1 (patch) | |
tree | 197b2852bd1803fbdde14b1d22e7b945fda0e77a /lib/inets/src | |
parent | a4cfcca78c83540b18786c92b1a3cf5d4ed15c2a (diff) | |
parent | 2a42a7d14bfdfdc323fa0b6da465f79821dafcae (diff) | |
download | otp-c24f636d3326f75d7d6c4206e1888f2e5420cec1.tar.gz otp-c24f636d3326f75d7d6c4206e1888f2e5420cec1.tar.bz2 otp-c24f636d3326f75d7d6c4206e1888f2e5420cec1.zip |
Merge branch 'peterdmv/inets/http_uri_backwards_compat/OTP-14573' into maint-20
* peterdmv/inets/http_uri_backwards_compat/OTP-14573:
inets: Restore old behavior when parsing "+"
Diffstat (limited to 'lib/inets/src')
-rw-r--r-- | lib/inets/src/http_lib/http_uri.erl | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/inets/src/http_lib/http_uri.erl b/lib/inets/src/http_lib/http_uri.erl index c4be5abd7c..7f1ca02014 100644 --- a/lib/inets/src/http_lib/http_uri.erl +++ b/lib/inets/src/http_lib/http_uri.erl @@ -117,8 +117,6 @@ decode(String) when is_list(String) -> decode(String) when is_binary(String) -> do_decode_binary(String). -do_decode([$+|Rest]) -> - [$ |do_decode(Rest)]; do_decode([$%,Hex1,Hex2|Rest]) -> [hex2dec(Hex1)*16+hex2dec(Hex2)|do_decode(Rest)]; do_decode([First|Rest]) -> @@ -126,8 +124,6 @@ do_decode([First|Rest]) -> do_decode([]) -> []. -do_decode_binary(<<$+, Rest/bits>>) -> - <<$ , (do_decode_binary(Rest))/binary>>; do_decode_binary(<<$%, Hex:2/binary, Rest/bits>>) -> <<(binary_to_integer(Hex, 16)), (do_decode_binary(Rest))/binary>>; do_decode_binary(<<First:1/binary, Rest/bits>>) -> |