summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-25 09:56:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-25 13:06:34 +0200
commit259a81555d4081952f6b7e30b5fa86fff356869b (patch)
tree7fdfde4d128036000183d2761ee6ac266374339b
parent3334ee6bcb2b23c583f4601dc24d122bb9719f17 (diff)
downloadcurl-259a81555d4081952f6b7e30b5fa86fff356869b.tar.gz
lib1560: verify "redirect" to double-slash leading URL
Closes #5849
-rw-r--r--tests/libtest/lib1560.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c
index d158534d7..20f852310 100644
--- a/tests/libtest/lib1560.c
+++ b/tests/libtest/lib1560.c
@@ -686,6 +686,14 @@ static CURLUcode updateurl(CURLU *u, const char *cmd, unsigned int setflags)
}
static struct redircase set_url_list[] = {
+ {"http://example.org/static/favicon/wikipedia.ico",
+ "//fake.example.com/licenses/by-sa/3.0/",
+ "http://fake.example.com/licenses/by-sa/3.0/",
+ 0, 0, 0},
+ {"https://example.org/static/favicon/wikipedia.ico",
+ "//fake.example.com/licenses/by-sa/3.0/",
+ "https://fake.example.com/licenses/by-sa/3.0/",
+ 0, 0, 0},
{"file://localhost/path?query#frag",
"foo#another",
"file:///foo#another",