Skip to content

Parse cookies values containing equal sign#66

Merged
bernardassan merged 1 commit into
tardy-org:mainfrom
0xhtml:cookie-parsing
Jun 10, 2026
Merged

Parse cookies values containing equal sign#66
bernardassan merged 1 commit into
tardy-org:mainfrom
0xhtml:cookie-parsing

Conversation

@0xhtml

@0xhtml 0xhtml commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Cookie values can actually contain equal signs and should therefore be allowed by the cookie header parsing.

From RFC-6265 Section 4.1.1:

cookie-value      = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
cookie-octet      = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
                      ; US-ASCII characters excluding CTLs,
                      ; whitespace DQUOTE, comma, semicolon,
                      ; and backslash

@bernardassan

Copy link
Copy Markdown
Collaborator

Looks good to me, thanks.

@bernardassan bernardassan merged commit 6d788e3 into tardy-org:main Jun 10, 2026
6 checks passed
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.

2 participants