mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 21:10:14 +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) {
|
export function updateCookie(cookie, headers) {
|
||||||
|
if (!cookie) return;
|
||||||
|
|
||||||
const parsed = parseSetCookie(splitCookiesString(headers.get('set-cookie'))),
|
const parsed = parseSetCookie(splitCookiesString(headers.get('set-cookie'))),
|
||||||
values = {}
|
values = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user