Skip to content

Respect a caller-provided applicationProtocols in makeTLSBootstrap - #930

Open
o-nnerb wants to merge 2 commits into
swift-server:mainfrom
request-dl:claude/applicationprotocols-override-fix-0e8cc0
Open

o-nnerb wants to merge 2 commits into
swift-server:mainfrom
request-dl:claude/applicationprotocols-override-fix-0e8cc0

Conversation

@o-nnerb

@o-nnerb o-nnerb commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

makeTLSBootstrap always overwrites tlsConfig.applicationProtocols based on the configured httpVersion, even when the caller already set their own ALPN protocol list on the TLSConfiguration they passed in via HTTPClientConfiguration.tlsConfiguration. That list was silently discarded.

This only sets applicationProtocols from httpVersion when the caller left it empty, so a custom ALPN list set on the TLSConfiguration itself is respected.

o-nnerb and others added 2 commits September 9, 2026 12:40
Previously the ALPN protocol list was unconditionally overwritten based
on the configured HTTP version, discarding any applicationProtocols the
caller had already set on their own TLSConfiguration.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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