Skip to content

Commit

Permalink
perf: Remove double-stringify in setCookie (#2980)
Browse files Browse the repository at this point in the history
* Remove double-stringify in setCookie

* Remove unnecessary semicolon
  • Loading branch information
peterver committed Mar 22, 2024
1 parent 1b62571 commit fcbf6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web/cookies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function setCookie (headers, cookie) {
const str = stringify(cookie)

if (str) {
headers.append('Set-Cookie', stringify(cookie))
headers.append('Set-Cookie', str)
}
}

Expand Down

0 comments on commit fcbf6de

Please sign in to comment.