Skip to content

Preserve per-request TLSConfiguration across redirects - #928

Merged
fabianfett merged 1 commit into
swift-server:mainfrom
hamzahrmalik:preserve_per_req_tls
Sep 23, 2026
Merged

fabianfett merged 1 commit into
swift-server:mainfrom
hamzahrmalik:preserve_per_req_tls

Conversation

@hamzahrmalik

@hamzahrmalik hamzahrmalik commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem
Currently, the per-request TLSConfiguration is dropped across a redirect. This means that if a request returns a 301 to a different path, the redirected request doesn't have the same trust roots or client identity as the original

Fix
Retain the TLSConfiguration across redirects, and add tests

@gjcairo gjcairo added the 🔨 semver/patch No public API change. label Sep 23, 2026

@fabianfett fabianfett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lovely, thank you!

@fabianfett
fabianfett enabled auto-merge (squash) September 23, 2026 13:18
@fabianfett
fabianfett merged commit 7cc76b9 into swift-server:main Sep 23, 2026
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants