diff --git a/packages/bun-lambda/runtime.ts b/packages/bun-lambda/runtime.ts index ab03376f5b..3f567ec17b 100755 --- a/packages/bun-lambda/runtime.ts +++ b/packages/bun-lambda/runtime.ts @@ -279,7 +279,7 @@ async function sendResponse(response: unknown): Promise { } await fetch(`runtime/invocation/${requestId}/response`, { method: "POST", - body: response === null ? null : JSON.stringify(response), + body: response === null ? null : (typeof response === 'string' ? response : JSON.stringify(response)), }); }