diff --git a/src/presets/azure/runtime/azure-functions.ts b/src/presets/azure/runtime/azure-functions.ts index c35c713fa3..8a173268ad 100644 --- a/src/presets/azure/runtime/azure-functions.ts +++ b/src/presets/azure/runtime/azure-functions.ts @@ -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 : statusText, + body: body ?? statusText, }; }