diff --git a/app/src/main/java/io/legado/app/help/http/CookieStore.kt b/app/src/main/java/io/legado/app/help/http/CookieStore.kt index dd537303d..66ce7e558 100644 --- a/app/src/main/java/io/legado/app/help/http/CookieStore.kt +++ b/app/src/main/java/io/legado/app/help/http/CookieStore.kt @@ -87,7 +87,7 @@ object CookieStore : CookieManager { } val builder = StringBuilder() cookieMap.keys.forEachIndexed { index, key -> - if (index > 0) builder.append("; ") + if (index > 0) builder.append(";") builder.append(key).append("=").append(cookieMap[key]) } return builder.toString() 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 c4ae52ba2..466610b21 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 @@ -28,7 +28,7 @@ val cookieJar by lazy { //临时保存 书源启用cookie选项再添加到数据库 val cookieBuilder = StringBuilder() cookies.forEachIndexed { index, cookie -> - if (index > 0) cookieBuilder.append("; ") + if (index > 0) cookieBuilder.append(";") cookieBuilder.append(cookie.name).append('=').append(cookie.value) } val domain = NetworkUtils.getSubDomain(url.toString())