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.
2 parents 8126fd6 + 15b9795 commit 279a018Copy full SHA for 279a018
src/request.js
@@ -42,7 +42,7 @@ class Request extends ReadableStream {
42
this.url = event.path;
43
this.params = event.pathParameters;
44
45
- if (!this.get('Content-Length') && 'body' in event && event.body !== null) {
+ if (!this.get('Content-Length') && event.body) {
46
this.headers['content-length'] = event.body.length;
47
}
48
0 commit comments