mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 12:30:12 +02:00
do not attempt to update nonexistent cookie
This commit is contained in:
parent
dfdda06099
commit
411938b460
@ -47,6 +47,8 @@ export function getCookie(service) {
|
||||
}
|
||||
|
||||
export function updateCookie(cookie, headers) {
|
||||
if (!cookie) return;
|
||||
|
||||
const parsed = parseSetCookie(splitCookiesString(headers.get('set-cookie'))),
|
||||
values = {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user