Skip to content

fix(cookie): normalize host handling with port - #926

Merged
0x676e67 merged 2 commits into
mainfrom
fix
Sep 2, 2025
Merged

fix(cookie): normalize host handling with port#926
0x676e67 merged 2 commits into
mainfrom
fix

Conversation

@0x676e67

@0x676e67 0x676e67 commented Sep 2, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR normalizes cookie domain handling by stripping port information from domains to ensure RFC 6265 compliance. Cookie domains should not include port numbers, and this change ensures consistent behavior across different URI formats.

  • Add domain normalization function to strip port information from cookie domains
  • Change function visibility from pub to private for domain_match, path_match, and normalize_path
  • Apply domain normalization when setting cookies

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/cookie.rs
@0x676e67
0x676e67 merged commit 66368be into main Sep 2, 2025
17 checks passed
@0x676e67
0x676e67 deleted the fix branch September 2, 2025 16:43
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