Comparing version 1.0.1 to 1.0.5
@@ -62,3 +62,3 @@ const fs = require('fs'); | ||
if (tmp = res.getHeader('content-type')) { | ||
headers['Content-Type'] = tmp; | ||
headers = { ...headers, 'Content-Type': tmp }; | ||
} | ||
@@ -77,3 +77,4 @@ | ||
} | ||
if (!tmp) headers = { ...headers }; | ||
headers['Content-Range'] = `bytes ${start}-${end}/${stats.size}`; | ||
@@ -80,0 +81,0 @@ headers['Content-Length'] = (end - start + 1); |
{ | ||
"name": "sirv", | ||
"version": "1.0.1", | ||
"version": "1.0.5", | ||
"description": "The optimized & lightweight middleware for serving requests to static assets", | ||
@@ -27,3 +27,3 @@ "repository": "lukeed/sirv", | ||
}, | ||
"gitHead": "cb8114de372e41480cd364233d20cd8be2360744" | ||
"gitHead": "45e2dafabb65fc68b7fb3ec21d47bf40a2cbb8d4" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21182
298