Skip to content

cookie: accept and ignore empty property names in Set-Cookie - #23302

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/cookie-blank-prop-name
Closed

bagder wants to merge 2 commits into
masterfrom
bagder/cookie-blank-prop-name

Conversation

@bagder

@bagder bagder commented Oct 7, 2026

Copy link
Copy Markdown
Member

Verify with test 3611

Reported-by: Hasan Flayyih Abdullah

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The parser change is focused and covered by a comprehensive regression test.

Review effort: Balanced
Findings: None

What changed in this PR

Updates cookie parsing to ignore nameless attributes while continuing to process subsequent valid attributes.

Changes:

  • Accepts empty cookie attribute names.
  • Adds and registers regression test 3611.
File Description
lib/​cookie.c Handles nameless cookie attributes.
tests/​data/​test3611 Verifies later cookie attributes remain effective.
tests/​data/​Makefile.am Registers the regression test.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@testclutch

Copy link
Copy Markdown

Analysis of PR #23302 at 2dee3fb9:

Test 3611 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 72 different CI jobs (the link just goes to one of them).

Generated by Testclutch

@bagder
bagder marked this pull request as ready for review October 7, 2026 20:22
@bagder
bagder force-pushed the bagder/cookie-blank-prop-name branch from 2dee3fb to 0145a0e Compare October 7, 2026 20:24
@bagder bagder closed this in 09f9fed Oct 7, 2026
@bagder
bagder deleted the bagder/cookie-blank-prop-name branch October 7, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants