Update MyCookieManager.swift

Added force unwrap fix
This commit is contained in:
Max Zimmermann 2023-05-31 09:50:58 +02:00 committed by GitHub
parent 2da9db9769
commit 840c71b2ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,12 @@ public class MyCookieManager: ChannelDelegate {
} }
} }
if let cookie = HTTPCookie(properties: properties) {
httpCookieStore.setCookie(cookie, completionHandler: {() in
result(true)
})
}
let cookie = HTTPCookie(properties: properties)! let cookie = HTTPCookie(properties: properties)!
MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in