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 b2a8503 commit 9deffabCopy full SHA for 9deffab
lib/request.js
@@ -159,8 +159,8 @@ class REQUEST {
159
this.rawBody = this.app._event.body
160
161
// Set the body (decode it if base64 encoded)
162
- this.body = this.app._event.isBase64Encoded ? Buffer.from(this.app._event.body, 'base64').toString() : this.app._event.body
163
-
+ this.body = this.app._event.isBase64Encoded ? Buffer.from(this.app._event.body||'', 'base64').toString() : this.app._event.body
+
164
// Set the body
165
if (this.headers['content-type'] && this.headers['content-type'].includes('application/x-www-form-urlencoded')) {
166
this.body = QS.parse(this.body)
0 commit comments