From d3f960c2b205f15991e42936b71d0a6e26089ecd Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 9 Jul 2022 20:09:48 +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/src/main/java/io/legado/app/help/http/HttpHelper.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/http/HttpHelper.kt b/app/src/main/java/io/legado/app/help/http/HttpHelper.kt index f0490af17..1e8fb27e1 100644 --- a/app/src/main/java/io/legado/app/help/http/HttpHelper.kt +++ b/app/src/main/java/io/legado/app/help/http/HttpHelper.kt @@ -29,10 +29,7 @@ val cookieJar by lazy { val cookieBuilder = StringBuilder() cookies.forEach { if (it.value != "") { - cookieBuilder.append(it.name) - .append("=") - .append(it.value) - .append(";") + cookieBuilder.append(it.name).append("=").append(it.value).append(";") } } cookieBuilder.deleteCharAt(cookieBuilder.lastIndexOf(";"))