aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/uri_SUITE.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/test/uri_SUITE.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/test/uri_SUITE.erl')
-rw-r--r--lib/inets/test/uri_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/test/uri_SUITE.erl b/lib/inets/test/uri_SUITE.erl
index 3e7799141c..f973296af6 100644
--- a/lib/inets/test/uri_SUITE.erl
+++ b/lib/inets/test/uri_SUITE.erl
@@ -277,8 +277,8 @@ encode_decode(Config) when is_list(Config) ->
?assertEqual("foo%20bar", http_uri:encode("foo bar")),
?assertEqual(<<"foo%20bar">>, http_uri:encode(<<"foo bar">>)),
- ?assertEqual("foo bar", http_uri:decode("foo+bar")),
- ?assertEqual(<<"foo bar">>, http_uri:decode(<<"foo+bar">>)),
+ ?assertEqual("foo+bar", http_uri:decode("foo+bar")),
+ ?assertEqual(<<"foo+bar">>, http_uri:decode(<<"foo+bar">>)),
?assertEqual("foo bar", http_uri:decode("foo%20bar")),
?assertEqual(<<"foo bar">>, http_uri:decode(<<"foo%20bar">>)),
?assertEqual("foo\r\n", http_uri:decode("foo%0D%0A")),