http-file-server
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -201,3 +201,3 @@ #!/usr/bin/env node | ||
debug && console.log('Opening file "'+fullPath+'" ...'); | ||
var stream = fs.createReadStream(fullPath, { | ||
var stream = fs.createReadStream(fullPath, 'binary', { | ||
flags: 'r', | ||
@@ -241,3 +241,3 @@ encoding: defEnc, | ||
stream.on('data', function (chunk) { | ||
res.write(chunk); | ||
res.write(chunk, 'binary'); | ||
}); | ||
@@ -244,0 +244,0 @@ |
@@ -12,3 +12,3 @@ { | ||
"license": "GPLv3", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"author": "Viacheslav Lotsmanov (unclechu)", | ||
@@ -15,0 +15,0 @@ "email": "lotsmanov89@gmail.com", |
46451