From f860c043c1e9607958f2f48f0a82ba9579b86a62 Mon Sep 17 00:00:00 2001 From: ilrilan Date: Thu, 23 May 2019 12:27:30 +0500 Subject: [PATCH] Fix: octal literals are not allowed in strict mode --- lib/node-static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {