aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-10-24 13:38:18 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-10-24 13:38:18 -0700
commit87b4f72ae7825453bb1cf93cfdf3e3169a92ef07 (patch)
tree393cbce9cb82fc3a023cbf71a0906af616f15441 /test
parent145ac0b6677a480e0a90b9870d8f6042d7cca9c7 (diff)
Uri: fix bug in percent-encoding of character codes 0x80-0xff
Can't treat characters using "char" type because it's signed.
Diffstat (limited to 'test')
-rw-r--r--test/src/UriTests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/src/UriTests.cpp b/test/src/UriTests.cpp
index 72d9f72..75693cc 100644
--- a/test/src/UriTests.cpp
+++ b/test/src/UriTests.cpp
@@ -807,6 +807,7 @@ TEST(UriTests, GenerateString) {
{"http", "bob", "www.example.com", true, 8080, {"", "a c", "def"}, true, "foobar", true, "ch2", "http://bob@www.example.com:8080/a%20c/def?foobar#ch2"},
{"http", "bob", "www.example.com", true, 8080, {"", "abc", "def"}, true, "foo ar", true, "ch2", "http://bob@www.example.com:8080/abc/def?foo%20ar#ch2"},
{"http", "bob", "www.example.com", true, 8080, {"", "abc", "def"}, true, "foobar", true, "c 2", "http://bob@www.example.com:8080/abc/def?foobar#c%202"},
+ {"http", "bob", "ሴ.example.com", true, 8080, {"", "abc", "def"}, true, "foobar", false, "", "http://bob@%E1%88%B4.example.com:8080/abc/def?foobar"},
// normalization of IPv6 address hex digits
{"http", "bob", "fFfF::1", true, 8080, {"", "abc", "def"}, true, "foobar", true, "c 2", "http://bob@[ffff::1]:8080/abc/def?foobar#c%202"},