pixl-server-web 1.3.19 → 1.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/static.js +5 -0
- package/package.json +1 -1
package/lib/static.js
CHANGED
|
@@ -149,6 +149,11 @@ module.exports = class Static {
|
|
|
149
149
|
return self.sendHTTPResponse( args, http_status, headers, "" );
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
// special response for 0-byte files
|
|
153
|
+
if (!file_stats.size) {
|
|
154
|
+
return self.sendHTTPResponse( args, http_status, headers, "" );
|
|
155
|
+
}
|
|
156
|
+
|
|
152
157
|
// open file stream
|
|
153
158
|
var stream = fs.createReadStream( file, {
|
|
154
159
|
start: range.from,
|
package/package.json
CHANGED