mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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 <= ' ' }
|
||||
|
||||
Reference in New Issue
Block a user