Comparing version 0.4.1 to 0.4.2
@@ -87,3 +87,3 @@ const fs = require('fs'); | ||
setHeaders(res, uri, stats); | ||
send(req, res, file, stats, { | ||
return send(req, res, file, stats, { | ||
'Content-Type': mime.getType(file), | ||
@@ -94,2 +94,3 @@ 'Last-Modified': stats.mtime.toUTCString(), | ||
} | ||
return next ? next() : isNotFound(req, res); | ||
} | ||
@@ -96,0 +97,0 @@ } |
{ | ||
"name": "sirv", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "The optimized & lightweight middleware for serving requests to static assets", | ||
@@ -5,0 +5,0 @@ "repository": "lukeed/sirv", |
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
8856
103