do not attempt to update nonexistent cookie

merge pull request #181 from dumbmoron/fix-cookie-update
This commit is contained in:
wukko 2023-08-20 19:38:11 +06:00 committed by GitHub
commit 6be2c7344e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {}