Skip to content

Commit

Permalink
fix(iOS): Separate cookies by ; rather than ; when accessing thr…
Browse files Browse the repository at this point in the history
…ough `document.cookie` (#6313)

Co-authored-by: Chace Daniels <chaced12@gmail.com>
  • Loading branch information
crhayes and ItsChaceD committed Mar 9, 2023
1 parent 78b7a59 commit beade60
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -88,7 +88,7 @@ public class CapacitorCookieManager {
let jar = HTTPCookieStorage.shared
guard let url = self.getServerUrl() else { return "" }
guard let cookies = jar.cookies(for: url) else { return "" }
return cookies.map({"\($0.name)=\($0.value)"}).joined(separator: ";")
return cookies.map({"\($0.name)=\($0.value)"}).joined(separator: "; ")
}

public func deleteCookie(_ url: URL, _ key: String) {
Expand Down

0 comments on commit beade60

Please sign in to comment.