Skip to content

Commit 279a018

Browse files
committed
Merge branch 'master' of github.com:archilogic-com/lambda-expressless
2 parents 8126fd6 + 15b9795 commit 279a018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Request extends ReadableStream {
4242
this.url = event.path;
4343
this.params = event.pathParameters;
4444

45-
if (!this.get('Content-Length') && 'body' in event && event.body !== null) {
45+
if (!this.get('Content-Length') && event.body) {
4646
this.headers['content-length'] = event.body.length;
4747
}
4848

0 commit comments

Comments
 (0)