Skip to content

Commit 93544da

Browse files
committed
typo
1 parent cf077c8 commit 93544da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Response extends EventEmitter {
3434
this.writableEnded = true
3535
this.emit('finished')
3636
const body = this[AWS_RES_BODY]
37-
const bodyStr = body === 'string' ? body : JSON.stringify(body)
37+
const bodyStr = typeof body === 'string' ? body : JSON.stringify(body)
3838
const apiGatewayResult = {
3939
statusCode: this.statusCode,
4040
headers: this[AWS_RES_HEADERS],

0 commit comments

Comments
 (0)