We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a749d0 commit e74b039Copy full SHA for e74b039
Sources/ClientRuntime/Networking/Http/CRT/CRTClientEngine.swift
@@ -68,10 +68,10 @@ public class CRTClientEngine: HTTPClient {
68
}
69
70
private func createConnectionPool(endpoint: Endpoint) throws -> HTTPClientConnectionManager {
71
- let tlsConnectionOptions = TLSConnectionOptions(
+ let tlsConnectionOptions = endpoint.protocolType == .https ? TLSConnectionOptions(
72
context: sharedDefaultIO.tlsContext,
73
serverName: endpoint.host
74
- )
+ ) : nil
75
76
var socketOptions = SocketOptions(socketType: .stream)
77
#if os(iOS) || os(watchOS)
0 commit comments