aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_lib/http_uri.erl
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2017-09-05 09:30:37 +0200
committerPéter Dimitrov <[email protected]>2017-09-06 13:20:21 +0200
commit2a42a7d14bfdfdc323fa0b6da465f79821dafcae (patch)
treee5217e552bc31ad12dfd825373d2a59b14242174 /lib/inets/src/http_lib/http_uri.erl
parenta230f26086b3db9097f06d4bb91fb3b2e9379c77 (diff)
downloadotp-2a42a7d14bfdfdc323fa0b6da465f79821dafcae.tar.gz
otp-2a42a7d14bfdfdc323fa0b6da465f79821dafcae.tar.bz2
otp-2a42a7d14bfdfdc323fa0b6da465f79821dafcae.zip
inets: Restore old behavior when parsing "+"
"+" is part of sub-delims according to RFC 3986 and shall not be converted to space.
Diffstat (limited to 'lib/inets/src/http_lib/http_uri.erl')
-rw-r--r--lib/inets/src/http_lib/http_uri.erl4
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>>) ->