Skip to content

Accept bare cookies#2837

Merged
ahopkins merged 5 commits into
mainfrom
bare-cookies
Nov 28, 2023
Merged

Accept bare cookies#2837
ahopkins merged 5 commits into
mainfrom
bare-cookies

Conversation

@Tronic

@Tronic Tronic commented Oct 14, 2023

Copy link
Copy Markdown
Member

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

codecov Bot commented Oct 14, 2023

Copy link
Copy Markdown

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
@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