pull/2051/head
kunfei 2 years ago
parent 8150b47fae
commit 61567bbea1
  1. 2
      app/src/main/java/io/legado/app/help/http/CookieStore.kt
  2. 2
      app/src/main/java/io/legado/app/help/http/HttpHelper.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()

@ -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())

Loading…
Cancel
Save