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

Accept bare cookies #2837

Merged
merged 5 commits into from
Nov 28, 2023
Merged

Accept bare cookies #2837

merged 5 commits into from
Nov 28, 2023

Conversation

Tronic
Copy link
Member

@Tronic Tronic commented Oct 14, 2023

Browsers allow setting document.cookie="foo" which causes them to send cookie: foo, rather than the usual for cookie: bar=foo. WhatWG specs were altered around 2016 to note how Chrome had been doing this, with the meaning that cookie name is empty and only value is included.

Discussion in:
httpwg/http-extensions#159
httpwg/http-extensions#1018

Fix #2835

@Tronic Tronic marked this pull request as ready for review October 14, 2023 19:30
@Tronic Tronic requested a review from a team as a code owner October 14, 2023 19:30
@codecov
Copy link

codecov bot commented Oct 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a5a9658) 88.387% compared to head (cee344f) 88.390%.

Additional details and impacted files
@@              Coverage Diff              @@
##              main     #2837       +/-   ##
=============================================
+ Coverage   88.387%   88.390%   +0.003%     
=============================================
  Files           92        92               
  Lines         7156      7158        +2     
  Branches      1228      1229        +1     
=============================================
+ Hits          6325      6327        +2     
  Misses         575       575               
  Partials       256       256               

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ahopkins
ahopkins previously approved these changes Nov 28, 2023
@ahopkins ahopkins merged commit d0f7f40 into main Nov 28, 2023
26 checks passed
@ahopkins ahopkins deleted the bare-cookies branch November 28, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cookie totally breaks if the client sets a bare cookie
2 participants