Skip to content

Commit

Permalink
Update src/cookie/parse.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Oct 4, 2024
1 parent 7c772ec commit 19a8562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cookie/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function parse(
val = tryDecode(val, dec);

// handle multiple values for the same key
// TODO: enable by default in v2
if (allowMultiple) {
obj[key] =
obj[key] === undefined || obj[key] === "" ? val : `${obj[key]},${val}`;
Expand Down

0 comments on commit 19a8562

Please sign in to comment.