mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
String response for lambda function - no need to strinfigy string (#6208)
This commit is contained in:
@@ -279,7 +279,7 @@ async function sendResponse(response: unknown): Promise<void> {
|
||||
}
|
||||
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)),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user