Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 22, 2025
1 parent 584c76d commit 058da33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export function setCookie(
event.node.res.removeHeader("set-cookie");
for (const cookie of currentCookies) {
const parsed = parseSetCookie(cookie);
const _key = getDistinctCookieKey(parsed.name, parsed);
if (_key === newCookieKey) {
const key = getDistinctCookieKey(parsed.name, parsed);
if (key === newCookieKey) {
continue;
}
event.node.res.appendHeader("set-cookie", cookie);
Expand Down

0 comments on commit 058da33

Please sign in to comment.