diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-11-02 15:11:16 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-11-03 00:14:04 +0100 |
commit | b28094833a971870fd8c07960b3b12bf6fbbaad3 (patch) | |
tree | 3657786565944146e9db42bbe2e98c792e059b6f /tests | |
parent | 6987e3730e3745678616f493301252e5b2513dcb (diff) |
URL: fix IPv6 numeral address parser
Regression from 46e164069d1a52. Extended test 1560 to verify.
Reported-by: tpaukrt on github
Fixes #3218
Closes #3219
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib1560.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index e0faa12b2..57469a906 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -128,6 +128,15 @@ struct querycase { }; static struct testcase get_parts_list[] ={ + {"http://[fd00:a41::50]:8080", + "http | [11] | [12] | [13] | [fd00:a41::50] | 8080 | / | [16] | [17]", + CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, + {"http://[fd00:a41::50]/", + "http | [11] | [12] | [13] | [fd00:a41::50] | [15] | / | [16] | [17]", + CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, + {"http://[fd00:a41::50]", + "http | [11] | [12] | [13] | [fd00:a41::50] | [15] | / | [16] | [17]", + CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, {"https://[::1%252]:1234", "https | [11] | [12] | [13] | [::1%252] | 1234 | / | [16] | [17]", CURLU_DEFAULT_SCHEME, 0, CURLUE_OK}, |