From 0b9455d87f2169011aba240e8f3231794b3eb3f6 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 12 Dec 2020 21:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=A4=8D=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=A4=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt index f89af656b..00b2e4b95 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt @@ -297,12 +297,14 @@ class AnalyzeUrl( RequestMethod.POST -> { if (fieldMap.isNotEmpty()) { RxHttp.postForm(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAllEncoded(fieldMap) .addAllHeader(headerMap) .toStrResponse().await() } else { RxHttp.postJson(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAll(body) .addAllHeader(headerMap) @@ -310,6 +312,7 @@ class AnalyzeUrl( } } else -> RxHttp.get(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAllEncoded(fieldMap) .addAllHeader(headerMap) @@ -323,12 +326,14 @@ class AnalyzeUrl( RequestMethod.POST -> { if (fieldMap.isNotEmpty()) { RxHttp.postForm(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAllEncoded(fieldMap) .addAllHeader(headerMap) .toByteArray().await() } else { RxHttp.postJson(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAll(body) .addAllHeader(headerMap) @@ -336,6 +341,7 @@ class AnalyzeUrl( } } else -> RxHttp.get(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAllEncoded(fieldMap) .toByteArray().await()