Merge pull request #182 from ole3021/fix/range-undefined-err
fix scope error
This commit is contained in:
commit
aab81590ed
|
@ -267,7 +267,6 @@ exports.download = function(provider, req, res, container, file, cb) {
|
|||
cb = function() {}; // avoid double-callback
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
function setupPartialDownload(params, stats, res) {
|
||||
var total = stats.size;
|
||||
|
@ -286,6 +285,8 @@ function setupPartialDownload(params, stats, res) {
|
|||
res.set('Accept-Ranges', 'bytes');
|
||||
res.set('Content-Length', chunksize);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
function processError(err, fileName) {
|
||||
if (err.code === 'ENOENT') {
|
||||
|
|
Loading…
Reference in New Issue