Skip to content

Commit

Permalink
Merge pull request #49 from KevinnZou/bugfix/ios_cookie_empty Fix iOS…
Browse files Browse the repository at this point in the history
… empty cookie bug

feat:Fix iOS empty cookie bug
  • Loading branch information
KevinnZou authored Nov 24, 2023
2 parents 38b9748 + 398de3c commit 3f7d163
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ object IOSCookieManager : CookieManager {
cookieStore.getAllCookies { cookies ->
cookies?.forEach { cookie ->
if (cookie is NSHTTPCookie) {
if (url.contains(cookie.domain)) {
KLogger.d {
"IOSCookieManager getCookies: name: ${cookie.name}, value: ${cookie.value} url: $url, domain: ${cookie.domain}"
}
if (url.contains(cookie.domain.removePrefix("."))) {
cookieList.add(
Cookie(
name = cookie.name,
Expand Down

0 comments on commit 3f7d163

Please sign in to comment.