mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
do not attempt to update nonexistent cookie
merge pull request #181 from dumbmoron/fix-cookie-update
This commit is contained in:
commit
6be2c7344e
|
@ -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…
Reference in a new issue