Skip to content

Commit

Permalink
fix: change fs.createReadStream() mode to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
pixcai authored and brettz9 committed Jan 12, 2022
1 parent d14a08a commit fe08b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class Server {
// Stream the file to the client
fs.createReadStream(file, {
flags: 'r',
mode: '0666',
mode: 0o666,
start: startByte,
end: startByte + (length ? length - 1 : 0)
}).on('data', function (chunk) {
Expand Down

0 comments on commit fe08b01

Please sign in to comment.