From 6c920d390d02d9595f90cc5ef45392b9bcd219ee Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 23 Mar 2021 22:02:53 +0800 Subject: [PATCH] remove .protocols(listOf(Protocol.HTTP_1_1)) --- app/src/main/java/io/legado/app/help/http/HttpHelper.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/http/HttpHelper.kt b/app/src/main/java/io/legado/app/help/http/HttpHelper.kt index d5fee367f..6a9f7f8b9 100644 --- a/app/src/main/java/io/legado/app/help/http/HttpHelper.kt +++ b/app/src/main/java/io/legado/app/help/http/HttpHelper.kt @@ -1,7 +1,10 @@ package io.legado.app.help.http import kotlinx.coroutines.suspendCancellableCoroutine -import okhttp3.* +import okhttp3.ConnectionSpec +import okhttp3.Credentials +import okhttp3.Interceptor +import okhttp3.OkHttpClient import java.net.InetSocketAddress import java.net.Proxy import java.util.concurrent.ConcurrentHashMap @@ -33,7 +36,6 @@ object HttpHelper { .connectionSpecs(specs) .followRedirects(true) .followSslRedirects(true) - .protocols(listOf(Protocol.HTTP_1_1)) .addInterceptor(getHeaderInterceptor()) builder.build()