Skip to content

Commit

Permalink
Fixed recurrent size error in the Propfind method
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jun 8, 2017
1 parent bc744b0 commit 67d7485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/server/commands/Propfind.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function default_1(arg, callback) {
}); });
resource.size(targetSource, function (e, size) { return process.nextTick(function () {
if (!e)
prop.ele('D:getcontentlength').add(size);
prop.ele('D:getcontentlength').add(size === undefined || size === null || size.constructor !== Number ? 0 : size);
nbOut(e);
}); });
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Propfind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default function(arg : MethodCallArgs, callback)
}))
resource.size(targetSource, (e, size) => process.nextTick(() => {
if(!e)
prop.ele('D:getcontentlength').add(size)
prop.ele('D:getcontentlength').add(size === undefined || size === null || size.constructor !== Number ? 0 : size)
nbOut(e);
}))
}
Expand Down

0 comments on commit 67d7485

Please sign in to comment.