Skip to content

Commit 1270412

Browse files
ironman-machineCloud User
authored andcommitted
merge #365
2 parents 44800cf + a10c674 commit 1270412

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/s3routes/routesUtils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ function _contentLengthMatchesLocations(contentLength, dataLocations) {
310310
(sum, location) => (sum !== undefined && location.size ?
311311
sum + Number.parseInt(location.size, 10) :
312312
undefined), 0);
313-
return sumSizes === undefined || sumSizes === contentLength;
313+
return sumSizes === undefined ||
314+
sumSizes === Number.parseInt(contentLength, 10);
314315
}
315316

316317
const routesUtils = {

0 commit comments

Comments
 (0)