|
|
@ -86,16 +86,11 @@ object CookieStore : CookieManager { |
|
|
|
return null |
|
|
|
return null |
|
|
|
} |
|
|
|
} |
|
|
|
val builder = StringBuilder() |
|
|
|
val builder = StringBuilder() |
|
|
|
for (key in cookieMap.keys) { |
|
|
|
cookieMap.keys.forEachIndexed { index, key -> |
|
|
|
val value = cookieMap[key] |
|
|
|
if (index > 0) builder.append("; ") |
|
|
|
if (value?.isNotBlank() == true) { |
|
|
|
builder.append(key).append("=").append(cookieMap[key]) |
|
|
|
builder.append(key) |
|
|
|
|
|
|
|
.append("=") |
|
|
|
|
|
|
|
.append(value) |
|
|
|
|
|
|
|
.append(";") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return builder.deleteCharAt(builder.lastIndexOf(";")).toString() |
|
|
|
return builder.toString() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun clear() { |
|
|
|
fun clear() { |
|
|
|