Skip to content

Commit

Permalink
fix(azure-functions): pass body to the context as-is (#2965)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryBerryMS authored Jan 7, 2025
1 parent 64e32d7 commit 0140de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/presets/azure/runtime/azure-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export async function handle(context: { res: HttpResponse }, req: HttpRequest) {
// cookies https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-node?tabs=typescript%2Cwindows%2Cazure-cli&pivots=nodejs-model-v4#http-response
cookies: getAzureParsedCookiesFromHeaders(headers),
headers: normalizeLambdaOutgoingHeaders(headers, true),
body: body ? body.toString() : statusText,
body: body ?? statusText,
};
}

0 comments on commit 0140de8

Please sign in to comment.