Comparing version 7.0.7 to 7.0.8
{ | ||
"name": "qiniu", | ||
"version": "7.0.7", | ||
"version": "7.0.8", | ||
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -146,2 +146,4 @@ const conf = require('../conf'); | ||
var isEnd = rsStream._readableState.ended; | ||
//check when to mkblk | ||
@@ -183,2 +185,5 @@ rsStream.on('data', function(chunk) { | ||
rsStream.resume(); | ||
if (isEnd) { | ||
mkfileReq(upDomain, uploadToken, fileSize, finishedCtxList, key, putExtra, callbackFunc); | ||
} | ||
} | ||
@@ -193,4 +198,6 @@ }); | ||
//console.log("end"); | ||
mkfileReq(upDomain, uploadToken, fileSize, finishedCtxList, key, | ||
if (!isEnd) { | ||
mkfileReq(upDomain, uploadToken, fileSize, finishedCtxList, key, | ||
putExtra, callbackFunc); | ||
} | ||
}); | ||
@@ -197,0 +204,0 @@ } |
126052
3359