We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf077c8 commit 93544daCopy full SHA for 93544da
src/response.js
@@ -34,7 +34,7 @@ class Response extends EventEmitter {
34
this.writableEnded = true
35
this.emit('finished')
36
const body = this[AWS_RES_BODY]
37
- const bodyStr = body === 'string' ? body : JSON.stringify(body)
+ const bodyStr = typeof body === 'string' ? body : JSON.stringify(body)
38
const apiGatewayResult = {
39
statusCode: this.statusCode,
40
headers: this[AWS_RES_HEADERS],
0 commit comments