mirror of
https://github.com/curl/curl.git
synced 2025-02-23 15:10:03 +08:00
lib1560: verify setting host to "" with and without URL encode
This commit is contained in:
parent
c64d0d67fd
commit
21c5d5971e
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user