From cc086fce023d98129c0c7eb8ff48a0852414db72 Mon Sep 17 00:00:00 2001 From: Leonard Ginters Date: Sun, 3 Jul 2022 22:46:15 +0200 Subject: [PATCH] fix: remove wrong condition that prevents cookie parsing (#97) --- shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.ts b/shared.ts index e165379..c065d55 100644 --- a/shared.ts +++ b/shared.ts @@ -69,7 +69,7 @@ export async function getAquaRequestFromNativeRequest( method: req.method.toUpperCase() as Method, headers: Object.fromEntries(req.headers), query: req.url.includes("?") ? parseQuery(req.url) : {}, - cookies: req.headers.get("cookies") ? parseCookies(req.headers) : {}, + cookies: parseCookies(req.headers), parameters: {}, matches: [], conn,