手动添加的cookie被不会登录的cookie覆盖

pull/439/head
AndyBernie 4 years ago
parent e27211ff80
commit e2ba018061
  1. 6
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

@ -281,7 +281,7 @@ class AnalyzeUrl(
fun getResponse(tag: String): Call<String> {
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 {

Loading…
Cancel
Save