From 2ec75ecb0243470e7f931bc3cc32e3c97dd7487a Mon Sep 17 00:00:00 2001 From: Peter Vermeulen Date: Thu, 21 Mar 2024 21:32:44 +0100 Subject: [PATCH] Remove double-stringify in setCookie --- 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..5f53d56a81e 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); } }