From ea4f374fc8f284c31c3de9657547ebd807ff2b0c Mon Sep 17 00:00:00 2001 From: Z4NR34L Date: Wed, 20 Nov 2024 10:12:37 +0100 Subject: [PATCH] feat: testing hix for server action headers --- packages/nemo/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nemo/src/index.ts b/packages/nemo/src/index.ts index eff2d0e..1ce77da 100644 --- a/packages/nemo/src/index.ts +++ b/packages/nemo/src/index.ts @@ -139,7 +139,7 @@ export function createMiddleware( if (middlewareResponse instanceof Response) return middlewareResponse; } - return NextResponse.next({ request, headers: request.headers }); + return NextResponse.next({ headers: new Headers(request.headers) }); }; }