Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ce9fc58

Browse files
authoredOct 31, 2024··
Skip protocol warning since QUIC supports multiplexing too (square#8563)
1 parent 90d2c07 commit ce9fc58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class DnsOverHttps internal constructor(
223223
hostname: String,
224224
response: Response,
225225
): List<InetAddress> {
226-
if (response.cacheResponse == null && response.protocol !== Protocol.HTTP_2) {
226+
if (response.cacheResponse == null && response.protocol !== Protocol.HTTP_2 && response.protocol !== Protocol.QUIC) {
227227
Platform.get().log("Incorrect protocol: ${response.protocol}", Platform.WARN)
228228
}
229229

0 commit comments

Comments
 (0)
Please sign in to comment.