From 2f9aec94ec973e781b19d10c880c95b1a1eac552 Mon Sep 17 00:00:00 2001 From: Christian Rich Date: Tue, 3 Oct 2023 09:57:42 +1100 Subject: [PATCH] Forward context response headers --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 6570822..f67c428 100644 --- a/src/index.ts +++ b/src/index.ts @@ -58,6 +58,7 @@ export function startServerAndCreateHandler( status: status || 200, headers: { ...Object.fromEntries(headers), + ...context?.res?.headers, 'content-length': Buffer.byteLength(body.string).toString(), }, body: body.string,