Skip to content

cookie: ignore individual cookie errors when loading - #22840

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/cookie-errors
Closed

bagder wants to merge 2 commits into
masterfrom
bagder/cookie-errors

Conversation

@bagder

@bagder bagder commented Sep 5, 2026

Copy link
Copy Markdown
Member

No description provided.

@bagder bagder added the cookies label Sep 5, 2026
@github-actions github-actions Bot added the HTTP label Sep 5, 2026
@bagder
bagder marked this pull request as ready for review September 5, 2026 14:48
@bagder
bagder requested a lite review from Copilot September 5, 2026 14:48

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.

🟢 Approval recommended

The behavioral change is small and low-risk, with only a minor documentation/comment clarity issue noted.

Pull request overview

Adjusts cookie file loading behavior so a single malformed/unacceptable cookie line does not stop processing the remainder of the cookie file, aligning cookie loading with the “best-effort” approach used elsewhere in the cookie parser.

Changes:

  • Treat non-OOM failures from Curl_cookie_add() during cookie_load() as non-fatal by clearing result to CURLE_OK and continuing to read subsequent lines.
File summaries
File Description
lib/cookie.c Continue cookie-file parsing after per-line cookie add failures, only stopping on out-of-memory.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread lib/cookie.c
@bagder bagder closed this in 6ded3e5 Sep 5, 2026
@bagder
bagder deleted the bagder/cookie-errors branch September 5, 2026 14:57
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.

2 participants