aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2020-10-09 13:28:01 -0700
committerRichard Walters <rwalters@digitalstirling.com>2020-10-09 13:29:40 -0700
commit87ae5a9f02cefc51fb24305ec79d37e4da40c4f0 (patch)
tree494a83942c9869cca27946f30a9b029e52d0573c /test
parentf07d459a57b69cdcca340a1a41d4d6f6800da8ed (diff)
Fix bug in IPv6 address parsing
Fix bug where IPv6 address ending in a group with only digits followed by a double-colon would not get parsed correctly
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 2fec3a0..e012627 100644
--- a/test/src/UriTests.cpp
+++ b/test/src/UriTests.cpp
@@ -731,6 +731,7 @@ TEST(UriTests, IPv6Address) {
{"http://[::ffff:1.2.3.4]/", "::ffff:1.2.3.4", true},
{"http://[2001:db8:85a3:8d3:1319:8a2e:370:7348]/", "2001:db8:85a3:8d3:1319:8a2e:370:7348", true},
{"http://[fFfF::1]", "fFfF::1", true},
+ {"http://[1234::1]", "1234::1", true},
{"http://[fFfF:1:2:3:4:5:6:a]", "fFfF:1:2:3:4:5:6:a", true},
// invalid