diff --git a/lib/node-static.js b/lib/node-static.js index 15d8144..cdadea5 100644 --- a/lib/node-static.js +++ b/lib/node-static.js @@ -362,7 +362,7 @@ Server.prototype.stream = function (pathname, files, length, startByte, res, cal // Stream the file to the client fs.createReadStream(file, { flags: 'r', - mode: 0666, + mode: '0666', start: startByte, end: startByte + (length ? length - 1 : 0) }).on('data', function (chunk) {