diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2020-10-09 13:30:45 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2020-10-09 13:30:45 -0700 |
commit | 456ce952f2ba8e6cb9c63ee211b2fa7db49d9529 (patch) | |
tree | 3cae4aa6ad96283f2a1de94b9a0fc6e73a38b516 /test | |
parent | 87ae5a9f02cefc51fb24305ec79d37e4da40c4f0 (diff) |
Fix bug in parsing IPv6 addresses
Fix bug where an IPv6 address ending in a double-colon was
not considered valid (it was being considered as truncated).
Diffstat (limited to 'test')
-rw-r--r-- | test/src/UriTests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/src/UriTests.cpp b/test/src/UriTests.cpp index e012627..df87093 100644 --- a/test/src/UriTests.cpp +++ b/test/src/UriTests.cpp @@ -733,6 +733,7 @@ TEST(UriTests, IPv6Address) { {"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}, + {"http://[2001:db8:85a3:8a2e::]/", "2001:db8:85a3:8a2e::", true}, // invalid {"http://[::fFfF::1]", "", false}, |