1
0
mirror of https://github.com/square/okhttp.git synced 2025-07-31 05:04:26 +03:00

Skip protocol warning since QUIC supports multiplexing too (#8563)

This commit is contained in:
ᡠᠵᡠᡳ ᡠᠵᡠ ᠮᠠᠨᡩ᠋ᠠᠨ
2024-10-31 17:27:31 +08:00
committed by GitHub
parent 90d2c07566
commit ce9fc58b8d

View File

@ -223,7 +223,7 @@ class DnsOverHttps internal constructor(
hostname: String, hostname: String,
response: Response, response: Response,
): List<InetAddress> { ): List<InetAddress> {
if (response.cacheResponse == null && response.protocol !== Protocol.HTTP_2) { if (response.cacheResponse == null && response.protocol !== Protocol.HTTP_2 && response.protocol !== Protocol.QUIC) {
Platform.get().log("Incorrect protocol: ${response.protocol}", Platform.WARN) Platform.get().log("Incorrect protocol: ${response.protocol}", Platform.WARN)
} }