From 6dda59a6bc217f7e0b89511c69c62aeb4c05df71 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 12 Dec 2020 11:22:00 +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 --- app/build.gradle | 4 ++-- .../java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d43b69821..2403cd321 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -172,10 +172,10 @@ dependencies { implementation 'com.github.gedoor:rhino-android:1.4' //网络 - implementation 'com.ljx.rxhttp:rxhttp:2.4.4-beta2' + implementation 'com.ljx.rxhttp:rxhttp:2.4.4-beta3' implementation 'com.squareup.okhttp3:okhttp:4.9.0' implementation 'com.github.franmontiel:PersistentCookieJar:v1.0.1' - kapt 'com.ljx.rxhttp:rxhttp-compiler:2.4.4-beta2' + kapt 'com.ljx.rxhttp:rxhttp-compiler:2.4.4-beta3' //Glide implementation 'com.github.bumptech.glide:glide:4.11.0' 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 3e1f6079f..f89af656b 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 @@ -298,7 +298,7 @@ class AnalyzeUrl( if (fieldMap.isNotEmpty()) { RxHttp.postForm(url) .setOkClient(HttpHelper.getProxyClient(proxy)) - .addAll(fieldMap) + .addAllEncoded(fieldMap) .addAllHeader(headerMap) .toStrResponse().await() } else { @@ -311,7 +311,7 @@ class AnalyzeUrl( } else -> RxHttp.get(url) .setOkClient(HttpHelper.getProxyClient(proxy)) - .addAll(fieldMap) + .addAllEncoded(fieldMap) .addAllHeader(headerMap) .toStrResponse().await() } @@ -324,7 +324,7 @@ class AnalyzeUrl( if (fieldMap.isNotEmpty()) { RxHttp.postForm(url) .setOkClient(HttpHelper.getProxyClient(proxy)) - .addAll(fieldMap) + .addAllEncoded(fieldMap) .addAllHeader(headerMap) .toByteArray().await() } else { @@ -337,7 +337,7 @@ class AnalyzeUrl( } else -> RxHttp.get(url) .setOkClient(HttpHelper.getProxyClient(proxy)) - .addAll(fieldMap) + .addAllEncoded(fieldMap) .toByteArray().await() } }