Skip to content

Commit 0768f7a

Browse files
committed
fix: remove support for http/3
1 parent 84c017b commit 0768f7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/TinfoilAI/URLSessionPinning.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ public class SecureURLSessionFactory {
101101
configuration.urlCache = nil
102102
configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData
103103

104+
// Disable HTTP/3 (QUIC) to avoid connection stability issues
105+
if #available(iOS 17.0, macOS 14.0, *) {
106+
configuration.assumesHTTP3Capable = false
107+
}
108+
104109
// Use a specific operation queue for delegate callbacks
105110
// Allow concurrent operations since delegate methods are thread-safe
106111
// (HTTP/2 handles multiplexing over a single connection)

0 commit comments

Comments
 (0)