Skip to content

Commit 47464bf

Browse files
committed
修改bug
1 parent 3717a05 commit 47464bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

qiniu/storage/resume.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function completeParts(upDomain, bucket, encodedObjectName, uploadToken, finishe
360360
var requestUrl = upDomain + '/buckets/' + bucket + '/objects/' + encodedObjectName + '/uploads/' + finishedEtags.uploadId;
361361
var requestBody = JSON.stringify(body);
362362
rpc.post(requestUrl, requestBody, headers, function (err, ret, info) {
363-
if (info.statusCode !== '200') {
363+
if (info.statusCode !== 200) {
364364
if (putExtra.resumeRecordFile) {
365365
fs.unlinkSync(putExtra.resumeRecordFile);
366366
}

test/resume_up.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ describe('test resume up', function () {
229229
var tmpfile = path.join(os.tmpdir(), '/resume_file');
230230
fs.writeFileSync(tmpfile, '');
231231
putExtra.resumeRecordFile = tmpfile;
232-
putExtra.partSize = 4 * 1024 * 1024
233-
putExtra.version = 'v2'
232+
putExtra.partSize = 4 * 1024 * 1024;
233+
putExtra.version = 'v2';
234234
putExtra.progressCallback = function (len, total) {
235235
if (len === total) {
236236
var content = fs.readFileSync(tmpfile);

0 commit comments

Comments
 (0)