pull/1391/head
gedoor 3 years ago
parent d47c12f55a
commit 20b6671902
  1. 3
      app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt

@ -40,10 +40,8 @@ val cronetEngine: ExperimentalCronetEngine by lazy {
//这会导致Jsoup的网络请求出现问题,暂时不接管系统URL //这会导致Jsoup的网络请求出现问题,暂时不接管系统URL
//URL.setURLStreamHandlerFactory(CronetURLStreamHandlerFactory(engine)) //URL.setURLStreamHandlerFactory(CronetURLStreamHandlerFactory(engine))
return@lazy engine return@lazy engine
} }
fun buildRequest(request: Request, callback: UrlRequest.Callback): UrlRequest { fun buildRequest(request: Request, callback: UrlRequest.Callback): UrlRequest {
val url = request.url.toString() val url = request.url.toString()
val headers: Headers = request.headers val headers: Headers = request.headers
@ -72,6 +70,5 @@ fun buildRequest(request: Request, callback: UrlRequest.Callback): UrlRequest {
}.build() }.build()
} }

Loading…
Cancel
Save