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,