Skip to content

Commit

Permalink
merge #365
Browse files Browse the repository at this point in the history
  • Loading branch information
ironman-machine authored and Cloud User committed Nov 3, 2017
2 parents 44800cf + a10c674 commit 1270412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/s3routes/routesUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ function _contentLengthMatchesLocations(contentLength, dataLocations) {
(sum, location) => (sum !== undefined && location.size ?
sum + Number.parseInt(location.size, 10) :
undefined), 0);
return sumSizes === undefined || sumSizes === contentLength;
return sumSizes === undefined ||
sumSizes === Number.parseInt(contentLength, 10);
}

const routesUtils = {
Expand Down

0 comments on commit 1270412

Please sign in to comment.