remove .protocols(listOf(Protocol.HTTP_1_1))

pull/909/head
gedoor 4 years ago
parent e4dd5896d0
commit 6c920d390d
  1. 6
      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()

Loading…
Cancel
Save