From 40f8b3ee0c29e050ce9985898e6b2e23d0869af9 Mon Sep 17 00:00:00 2001 From: dumbmoron <136796770+dumbmoron@users.noreply.github.com> Date: Sun, 20 Aug 2023 22:31:16 +0000 Subject: [PATCH] update cookies that have no expiration --- src/modules/processing/cookie/manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/processing/cookie/manager.js b/src/modules/processing/cookie/manager.js index b9feedc1..6ea05561 100644 --- a/src/modules/processing/cookie/manager.js +++ b/src/modules/processing/cookie/manager.js @@ -55,7 +55,7 @@ export function updateCookie(cookie, headers) { ), values = {} cookie.unset(parsed.filter(c => c.expires < new Date()).map(c => c.name)); - parsed.filter(c => c.expires > new Date()).forEach(c => values[c.name] = c.value); + parsed.filter(c => !c.expires || c.expires > new Date()).forEach(c => values[c.name] = c.value); cookie.set(values); if (Object.keys(values).length) dirty = true