From cd1523f261946b97f0237444802fea760752b767 Mon Sep 17 00:00:00 2001 From: Denis Badurina Date: Fri, 17 Jan 2025 15:11:04 +0100 Subject: [PATCH] fix(use/@netlify/functions): Pass the headers to netlify handler --- src/use/@netlify/functions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/use/@netlify/functions.ts b/src/use/@netlify/functions.ts index 4fa66780..5e863236 100644 --- a/src/use/@netlify/functions.ts +++ b/src/use/@netlify/functions.ts @@ -41,6 +41,7 @@ export function createHandler( // if body is null, return undefined body: body ?? undefined, statusCode: init.status, + headers: init.headers, }; } catch (err) { // The handler shouldnt throw errors.