Skip to content

Bracket IPv6 session cookie hosts during reload#608

Merged
ryanfowler merged 1 commit into
mainfrom
fix-ipv6-session-cookies
May 26, 2026
Merged

Bracket IPv6 session cookie hosts during reload#608
ryanfowler merged 1 commit into
mainfrom
fix-ipv6-session-cookies

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • Fix session cookie reload so IPv6 literal domains are rebuilt as valid origin URLs with brackets.
  • Add a helper to preserve already-bracketed hosts while leaving normal domains unchanged.
  • Cover the regression with tests for reloading a host-only cookie from http://[::1]/ and for loading a legacy bare ::1 session file.

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • cargo test --all-features --test integration -- --test-threads=1

@ryanfowler ryanfowler enabled auto-merge May 26, 2026 23:13
@ryanfowler ryanfowler merged commit c888845 into main May 26, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix-ipv6-session-cookies branch May 26, 2026 23:17
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.

1 participant