Merge pull request #309 from carlnorum/uploadfix

Fix upload length update.
This commit is contained in:
hamza zia 2017-03-06 16:46:31 +08:00 committed by GitHub
commit 6e74727f9e

View File

@ -451,8 +451,8 @@ function(
} else if (ctx.verifyIntegrityPending !== d.verifyIntegrityPending) {
ctx.verifyIntegrityPending = d.verifyIntegrityPending;
}
if (ctx.uploadLength !== d.uploadength) {
ctx.uploadLength = d.uploadlength;
if (ctx.uploadLength !== d.uploadLength) {
ctx.uploadLength = d.uploadLength;
ctx.fmtUploadLength = utils.fmtsize(d.uploadLength);
}
if (ctx.pieceLength !== d.pieceLength) {