Comparing version 0.7.0 to 0.7.1
@@ -0,1 +1,4 @@ | ||
2015/03/27 Version 0.7.1 | ||
- Treat ENOTDIR as 404 (same as ENOENT) | ||
2015/03/18 Version 0.7.0 | ||
@@ -2,0 +5,0 @@ - Add support for specifying default content-type (as an alternative to application/octet-stream) |
@@ -77,3 +77,3 @@ #! /usr/bin/env node | ||
fs.stat(file, function (err, stat) { | ||
if (err && err.code === 'ENOENT') { | ||
if (err && (err.code === 'ENOENT' || err.code === 'ENOTDIR')) { | ||
if (req.statusCode == 404) { | ||
@@ -80,0 +80,0 @@ // This means we're already trying ./404.html |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware that works with both Express and Flatiron", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"homepage": "https://github.com/jfhbrook/node-ecstatic", | ||
@@ -8,0 +8,0 @@ "repository": { |
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
225965
19