Skip to content

Commit cd1523f

Browse files
committedJan 17, 2025··
fix(use/@netlify/functions): Pass the headers to netlify handler
1 parent cd6d6cf commit cd1523f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/use/@netlify/functions.ts

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function createHandler<Context extends OperationContext = undefined>(
4141
// if body is null, return undefined
4242
body: body ?? undefined,
4343
statusCode: init.status,
44+
headers: init.headers,
4445
};
4546
} catch (err) {
4647
// The handler shouldnt throw errors.

0 commit comments

Comments
 (0)
Please sign in to comment.