summaryrefslogtreecommitdiff
path: root/tests/data/test8
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2018-08-28 11:28:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-08-31 14:11:37 +0200
commite2ef8d6fa11b2345e10b89db525920f2a0d5fd79 (patch)
tree3be4fab33a03fcda3d398217511d5e4744dd546a /tests/data/test8
parentb842fa3110aa2ff1204fd9370d657bc5f1174ffb (diff)
downloadgnurl-e2ef8d6fa11b2345e10b89db525920f2a0d5fd79.tar.gz
gnurl-e2ef8d6fa11b2345e10b89db525920f2a0d5fd79.tar.bz2
gnurl-e2ef8d6fa11b2345e10b89db525920f2a0d5fd79.zip
cookies: support creation-time attribute for cookies
According to RFC6265 section 5.4, cookies with equal path lengths SHOULD be sorted by creation-time (earlier first). This adds a creation-time record to the cookie struct in order to make cookie sorting more deterministic. The creation-time is defined as the order of the cookies in the jar, the first cookie read fro the jar being the oldest. The creation-time is thus not serialized into the jar. Also remove the strcmp() matching in the sorting as there is no lexicographic ordering in RFC6265. Existing tests are updated to match. Closes #2524
Diffstat (limited to 'tests/data/test8')
-rw-r--r--tests/data/test82
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/data/test8 b/tests/data/test8
index ffc421ab8..2fc190060 100644
--- a/tests/data/test8
+++ b/tests/data/test8
@@ -62,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; name with space=is weird but; trailingspace=removed; cookie=yes; foobar=name; blexp=yesyes
+Cookie: name with space=is weird but; trailingspace=removed; cookie=perhaps; cookie=yes; foobar=name; blexp=yesyes
</protocol>
</verify>