summaryrefslogtreecommitdiff
path: root/tests/data/test8
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-02-08 15:48:18 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-02-08 15:49:54 +0100
commit18c735e790e47a1199f9dd71a01aa9847d6474b1 (patch)
tree29b13b74bba29c6314f4ceeab0383447d5c530e0 /tests/data/test8
parentc4303fd5bb26c54a90a8e1ab4380f615995dd0c6 (diff)
downloadgnurl-18c735e790e47a1199f9dd71a01aa9847d6474b1.tar.gz
gnurl-18c735e790e47a1199f9dd71a01aa9847d6474b1.tar.bz2
gnurl-18c735e790e47a1199f9dd71a01aa9847d6474b1.zip
cookies: allow spaces in cookie names, cut of trailing spaces
It turns out Firefox and Chrome both allow spaces in cookie names and there are sites out there using that. Turned out the code meant to strip off trailing space from cookie names didn't work. Fixed now. Test case 8 modified to verify both these changes. Closes #639
Diffstat (limited to 'tests/data/test8')
-rw-r--r--tests/data/test84
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/data/test8 b/tests/data/test8
index 030fd55eb..ffc421ab8 100644
--- a/tests/data/test8
+++ b/tests/data/test8
@@ -41,6 +41,8 @@ Set-Cookie: partmatch=present; domain=.0.0.1; path=/w;
Set-Cookie: duplicate=test; domain=.0.0.1; domain=.0.0.1; path=/donkey;
Set-Cookie: cookie=yes; path=/we;
Set-Cookie: cookie=perhaps; path=/we/want;
+Set-Cookie: name with space=is weird but; path=/we/want;
+Set-Cookie: trailingspace = removed; path=/we/want;
Set-Cookie: nocookie=yes; path=/WE;
Set-Cookie: blexp=yesyes; domain=%HOSTIP; domain=%HOSTIP; expiry=totally bad;
Set-Cookie: partialip=nono; domain=.0.0.1;
@@ -60,7 +62,7 @@ perl -e 'if ("%HOSTIP" !~ /\.0\.0\.1$/) {print "Test only works for HOSTIPs endi
GET /we/want/8 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
-Cookie: cookie=perhaps; cookie=yes; foobar=name; blexp=yesyes
+Cookie: cookie=perhaps; name with space=is weird but; trailingspace=removed; cookie=yes; foobar=name; blexp=yesyes
</protocol>
</verify>