Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC6265bis] Accept nameless cookies. #1018

Merged
merged 1 commit into from
Jan 10, 2020
Merged

[RFC6265bis] Accept nameless cookies. #1018

merged 1 commit into from
Jan 10, 2020

Conversation

mikewest
Copy link
Member

@mikewest mikewest commented Jan 3, 2020

This patch alters the cookie parsing algorithm to treat
Set-Cookie: token as creating a cookie with an empty name and a value
of "token". It also rejects cookies with neither names nor values (e.g.
Set-Cookie: and Set-Cookie: =.

Tests in web-platform-tests/wpt#21093.

Closes #159.

This patch alters the cookie parsing algorithm to treat
`Set-Cookie: token` as creating a cookie with an empty name and a value
of "token". It also rejects cookies with neither names nor values (e.g.
`Set-Cookie:` and `Set-Cookie: =`.

Closes #159.
@mikewest
Copy link
Member Author

mikewest commented Jan 9, 2020

@johnwilander: Ping?

@mikewest
Copy link
Member Author

Landing this based on the discussion in #159. @johnwilander: If the wording needs more cleanup, I'd appreciate feedback!

@mikewest mikewest merged commit 0178223 into master Jan 10, 2020
@mikewest mikewest deleted the empty-name branch January 10, 2020 07:44
@triple-underscore
Copy link

The cookie-pair ABNF rule still requires presence of =.
Is it intentional?

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jan 21, 2020
This is based on the recent changes in
httpwg/http-extensions#159 and
httpwg/http-extensions#1018.

Differential Revision: https://phabricator.services.mozilla.com/D60465

--HG--
extra : moz-landing-system : lando
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Allow cookies without key or value
2 participants