|
|
|
@ -147,7 +147,6 @@ class CronetUrlRequestCallback @JvmOverloads internal constructor( |
|
|
|
|
private const val TAG = "Callback" |
|
|
|
|
private const val MAX_FOLLOW_COUNT = 20 |
|
|
|
|
|
|
|
|
|
@Suppress("DEPRECATION") |
|
|
|
|
private fun protocolFromNegotiatedProtocol(responseInfo: UrlResponseInfo): Protocol { |
|
|
|
|
val negotiatedProtocol = responseInfo.negotiatedProtocol.lowercase(Locale.getDefault()) |
|
|
|
|
// Log.e("Cronet", responseInfo.url) |
|
|
|
@ -160,6 +159,7 @@ class CronetUrlRequestCallback @JvmOverloads internal constructor( |
|
|
|
|
Protocol.QUIC |
|
|
|
|
} |
|
|
|
|
negotiatedProtocol.contains("spdy") -> { |
|
|
|
|
@Suppress("DEPRECATION") |
|
|
|
|
Protocol.SPDY_3 |
|
|
|
|
} |
|
|
|
|
negotiatedProtocol.contains("h2") -> { |
|
|
|
|