Skip to content

Only override applicationProtocols in makeTLSBootstrap when unset - #14

Draft
o-nnerb wants to merge 2 commits into
mainfrom
claude/applicationprotocols-override-fix-0e8cc0
Draft

o-nnerb wants to merge 2 commits into
mainfrom
claude/applicationprotocols-override-fix-0e8cc0

Conversation

@o-nnerb

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

Copy link
Copy Markdown
Member

Summary

  • makeTLSBootstrap unconditionally overwrote tlsConfig.applicationProtocols based on the configured HTTP version, discarding any ALPN protocol list the caller had already set on their own TLSConfiguration.
  • Now the HTTP-version-based ALPN list (h2/http/1.1 or http/1.1) is only applied when the caller hasn't set applicationProtocols themselves.

Test plan

  • swift build succeeds

🤖 Generated with Claude Code

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