Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Oct 13, 2023
1 parent 314619e commit 2ab7723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/io/legado/app/help/http/CookieStore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ object CookieStore : CookieManagerInterface {
}
val pairArray = cookie.split(semicolonRegex).dropLastWhile { it.isEmpty() }.toTypedArray()
for (pair in pairArray) {
val pairs = pair.split(equalsRegex).dropLastWhile { it.isEmpty() }.toTypedArray()
if (pairs.size == 1) {
val pairs = pair.split(equalsRegex, 2).dropLastWhile { it.isEmpty() }.toTypedArray()
if (pairs.size <= 1) {
continue
}
val key = pairs[0].trim { it <= ' ' }
Expand Down

0 comments on commit 2ab7723

Please sign in to comment.