Skip to content

Commit 73ab898

Browse files
author
Capacitor+ Bot
committed
chore: sync upstream PR ionic-team#8249 from @michaelwolz
2 parents 270d700 + 8ec0dba commit 73ab898

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

ios/Capacitor/Capacitor/Plugins/CapacitorCookieManager.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ public class CapacitorCookieManager {
4646
return url
4747
}
4848

49-
public func encode(_ value: String) -> String {
50-
return value.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)!
51-
}
52-
53-
public func decode(_ value: String) -> String {
54-
return value.removingPercentEncoding!
55-
}
56-
5749
public func setCookie(_ domain: String, _ action: String) {
5850
let url = getServerUrl(domain)!
5951
let jar = HTTPCookieStorage.shared

ios/Capacitor/Capacitor/Plugins/CapacitorCookies.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class CAPCookiesPlugin: CAPPlugin, CAPBridgedPlugin {
3131

3232
let expires = call.getString("expires", "")
3333
let path = call.getString("path", "")
34-
cookieManager!.setCookie(url, key, cookieManager!.encode(value), expires, path)
34+
cookieManager!.setCookie(url, key, value, expires, path)
3535
call.resolve()
3636
}
3737

0 commit comments

Comments
 (0)