We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055770e commit 834b840Copy full SHA for 834b840
response.js
@@ -63,7 +63,7 @@ class RESPONSE {
63
const response = {
64
headers: this._headers,
65
statusCode: this._statusCode,
66
- body: typeof body === 'object' ? JSON.stringify(body) : (typeof body !== 'string' ? body.toString() : body)
+ body: typeof body === 'object' ? JSON.stringify(body) : (body && typeof body !== 'string' ? body.toString() : (body ? body : ''))
67
}
68
69
// Trigger the callback function
0 commit comments