From 21c5d5971e659fcb6aae900bc8039a162e8fa1c4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 31 Oct 2023 11:35:25 +0100 Subject: [PATCH] lib1560: verify setting host to "" with and without URL encode --- tests/libtest/lib1560.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index 765df0a279..218f43e225 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -785,6 +785,14 @@ static const struct setgetcase setget_parts_list[] = { /* !checksrc! disable SPACEBEFORECOMMA 1 */ static const struct setcase set_parts_list[] = { + {"https://example.com/", + "host=\"\",", + "https://example.com/", + 0, CURLU_URLENCODE, CURLUE_OK, CURLUE_BAD_HOSTNAME}, + {"https://example.com/", + "host=\"\",", + "https://example.com/", + 0, 0, CURLUE_OK, CURLUE_BAD_HOSTNAME}, {"https://example.com", "path=get,", "https://example.com/get",