fix scope error

This commit is contained in:
ole3021 2016-12-07 16:19:11 +08:00 committed by Miguel González Aravena
parent edd5651e0e
commit ecf44e0c68
1 changed files with 18 additions and 17 deletions

View File

@ -267,7 +267,6 @@ exports.download = function(provider, req, res, container, file, cb) {
cb = function() {}; // avoid double-callback cb = function() {}; // avoid double-callback
}); });
} }
};
function setupPartialDownload(params, stats, res) { function setupPartialDownload(params, stats, res) {
var total = stats.size; var total = stats.size;
@ -286,6 +285,8 @@ function setupPartialDownload(params, stats, res) {
res.set('Accept-Ranges', 'bytes'); res.set('Accept-Ranges', 'bytes');
res.set('Content-Length', chunksize); res.set('Content-Length', chunksize);
}; };
};
function processError(err, fileName) { function processError(err, fileName) {
if (err.code === 'ENOENT') { if (err.code === 'ENOENT') {