do not attempt to update nonexistent cookie
This commit is contained in:
parent
dfdda06099
commit
411938b460
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue