优化
This commit is contained in:
1 parent
1dff187c64
commit
310fd49eb1
1 file changed
+2
-2
@@ -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