From 2042bbe1f2f39f38ebdb178e1ef654bcc53d9866 Mon Sep 17 00:00:00 2001 From: Peter Vermeulen Date: Fri, 22 Mar 2024 04:32:13 +0100 Subject: [PATCH] perf: Remove double-stringify in setCookie (#2980) * Remove double-stringify in setCookie * Remove unnecessary semicolon --- lib/web/cookies/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/cookies/index.js b/lib/web/cookies/index.js index c9c1f28ee1f..1fc2bd295f6 100644 --- a/lib/web/cookies/index.js +++ b/lib/web/cookies/index.js @@ -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) } }