Repository navigation
Conversation
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>
|
Would you mind describing your use-case here? |
|
Thanks for asking, and sorry for the noise. I took another look from the RequestDL side, which is where this came from. RequestDL exposed I now think the right API for this is the existing I'm leaving a note for anyone who hits the same surprise (a value set on
There's currently no way to force HTTP/2-only, and AHC doesn't support HTTP/3. |
…nset" (#23) This reverts commit 0bd950d. RequestDL now controls the protocol through HTTPClient.Configuration.httpVersion, so the fork no longer needs to diverge from upstream here (swift-server#930 was closed). Co-authored-by: brennobemoura <37243584+brennobemoura@users.noreply.github.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
makeTLSBootstrapalways overwritestlsConfig.applicationProtocolsbased on the configuredhttpVersion, even when the caller already set their own ALPN protocol list on theTLSConfigurationthey passed in viaHTTPClientConfiguration.tlsConfiguration. That list was silently discarded.This only sets
applicationProtocolsfromhttpVersionwhen the caller left it empty, so a custom ALPN list set on theTLSConfigurationitself is respected.