|
|
|
@ -28,7 +28,7 @@ class CronetInterceptor(private val cookieJar: CookieJar?) : Interceptor { |
|
|
|
|
response |
|
|
|
|
} catch (e: Exception) { |
|
|
|
|
//遇到Cronet处理有问题时的情况,如证书过期等等,回退到okhttp处理 |
|
|
|
|
if (e.message.toString().contains("ERR_CERT_DATE_INVALID", true)) { |
|
|
|
|
if (e.message.toString().contains("ERR_CERT_", true)) { |
|
|
|
|
chain.proceed(original) |
|
|
|
|
} else { |
|
|
|
|
throw e |
|
|
|
|