From 20b66719025198e4a94c2e9328b034ad4defbf07 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 20 Oct 2021 08:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/help/http/cronet/CronetHelper.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt b/app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt index cb376740e..8e4f1fbec 100644 --- a/app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt +++ b/app/src/main/java/io/legado/app/help/http/cronet/CronetHelper.kt @@ -40,10 +40,8 @@ val cronetEngine: ExperimentalCronetEngine by lazy { //这会导致Jsoup的网络请求出现问题,暂时不接管系统URL //URL.setURLStreamHandlerFactory(CronetURLStreamHandlerFactory(engine)) return@lazy engine - } - fun buildRequest(request: Request, callback: UrlRequest.Callback): UrlRequest { val url = request.url.toString() val headers: Headers = request.headers @@ -72,6 +70,5 @@ fun buildRequest(request: Request, callback: UrlRequest.Callback): UrlRequest { }.build() - }