Skip to content

Commit 2404ede

Browse files
authored
fix: Disable TLS 1.3 on URLSessionHTTPClient (#766)
1 parent 8f7bc6f commit 2404ede

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/ClientRuntime/Networking/Http/URLSession/URLSessionConfiguration+HTTPClientConfiguration.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ extension URLSessionConfiguration {
1717
config.httpShouldSetCookies = false
1818
config.httpCookieAcceptPolicy = .never
1919
config.httpCookieStorage = nil
20+
config.tlsMaximumSupportedProtocolVersion = .TLSv12
2021
return config
2122
}
2223
}

0 commit comments

Comments
 (0)