Skip to content

Commit

Permalink
fix(use/@netlify/functions): Pass the headers to netlify handler
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Jan 17, 2025
1 parent cd6d6cf commit cd1523f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/use/@netlify/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function createHandler<Context extends OperationContext = undefined>(
// if body is null, return undefined
body: body ?? undefined,
statusCode: init.status,
headers: init.headers,
};
} catch (err) {
// The handler shouldnt throw errors.
Expand Down

0 comments on commit cd1523f

Please sign in to comment.