From e2ba01806107fbe8523e34b760ad0dfad78ddcfa Mon Sep 17 00:00:00 2001 From: AndyBernie Date: Thu, 22 Oct 2020 23:47:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=B7=BB=E5=8A=A0=E7=9A=84co?= =?UTF-8?q?okie=E8=A2=AB=E4=B8=8D=E4=BC=9A=E7=99=BB=E5=BD=95=E7=9A=84cooki?= =?UTF-8?q?e=E8=A6=86=E7=9B=96?= 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, 3 insertions(+), 3 deletions(-) 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 a4729341e..160c0debf 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 @@ -281,7 +281,7 @@ class AnalyzeUrl( fun getResponse(tag: String): Call { val cookie = CookieStore.getCookie(tag) if (cookie.isNotEmpty()) { - headerMap["Cookie"] = cookie + headerMap["Cookie"] += ";${cookie}" } return when { method == RequestMethod.POST -> { @@ -324,7 +324,7 @@ class AnalyzeUrl( } val cookie = CookieStore.getCookie(tag) if (cookie.isNotEmpty()) { - headerMap["Cookie"] = cookie + headerMap["Cookie"] += ";${cookie}" } val res = when { method == RequestMethod.POST -> { @@ -356,7 +356,7 @@ class AnalyzeUrl( if (tag != null) { val cookie = CookieStore.getCookie(tag) if (cookie.isNotEmpty()) { - headerMap["Cookie"] = cookie + headerMap["Cookie"] += ";${cookie}" } } val response = when {