mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:03:33 +03:00
- As was pointed out on the http-state mailing list, the order of cookies in a
HTTP Cookie: header _needs_ to be sorted on the path length in the cases where two cookies using the same name are set more than once using (overlapping) paths. Realizing this, identically named cookies must be sorted correctly. But detecting only identically named cookies and take care of them individually is harder than just to blindly and unconditionally sort all cookies based on their path lengths. All major browsers also already do this, so this makes our behavior one step closer to them in the cookie area. Test case 8 was the only one that broke due to this change and I updated it accordingly.
This commit is contained in:
parent
01030e9240
commit
877dad1e24
4 changed files with 62 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ Set-Cookie: blexp=yesyes; domain=.0.0.1; domain=.0.0.1; expiry=totally bad;
|
|||
GET /we/want/8 HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Accept: */*
|
||||
Cookie: blexp=yesyes; cookie=yes; partmatch=present; foobar=name
|
||||
Cookie: cookie=yes; partmatch=present; foobar=name; blexp=yesyes
|
||||
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue