Skip to content

Commit 5e7e231

Browse files
fentasbhstahl
authored andcommitted
enable 0 byte files
1 parent c1edd01 commit 5e7e231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validators/RequestValidator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RequestValidator {
1818

1919
// The value MUST be a non-negative integer.
2020
static _invalidUploadLengthHeader(value) {
21-
return isNaN(value) || parseInt(value, 10) < 1;
21+
return isNaN(value) || parseInt(value, 10) < 0;
2222
}
2323

2424
// The Upload-Defer-Length value MUST be 1.

0 commit comments

Comments
 (0)