You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialize the cookie-list into a cookie-string by processing each cookie in the cookie-list in order:
1. Output the cookie’s name, the %x3D (“=”) character, and the cookie’s value.
2. If there is an unprocessed cookie in the cookie-list, output the characters %x3B and %x20 (“; “).
However looking at WPT tests (for example [1] / [2]) I can see that when we have Set-Cookie: foo (empty name with value foo) the expectation is to have Cookie: foo back, so perhaps these instructions should include a special case when the cookie name is empty.
Nameless cookies serialize as `value`. Valueless cookies serialize as
`name=`. No, this isn't what we would have chosen if we were designing
cookies from scratch, but it's Chromium and Firefox's shipping behavior,
and it's reasonable to just accept.
This specification change is covered by 0021 and 0022 in the WPT
repository (see
https://wpt.fyi/results/cookies/http-state/general-tests.html?label=master&label=experimental&aligned).
Closes#1081.
Nameless cookies serialize as `value`. Valueless cookies serialize as
`name=`. No, this isn't what we would have chosen if we were designing
cookies from scratch, but it's Chromium and Firefox's shipping behavior,
and it's reasonable to just accept.
This specification change is covered by 0021 and 0022 in the WPT
repository (see
https://wpt.fyi/results/cookies/http-state/general-tests.html?label=master&label=experimental&aligned).
Closes#1081.
Step 4 says:
However looking at WPT tests (for example [1] / [2]) I can see that when we have
Set-Cookie: foo
(empty name with valuefoo
) the expectation is to haveCookie: foo
back, so perhaps these instructions should include a special case when the cookie name is empty.[1] https://github.com/web-platform-tests/wpt/blob/master/cookies/http-state/resources/test-files/0004-test
[2] https://github.com/web-platform-tests/wpt/blob/master/cookies/http-state/resources/test-files/0004-expected
The text was updated successfully, but these errors were encountered: