Comparing version 0.5.1 to 0.5.2
@@ -98,3 +98,3 @@ #! /usr/bin/env node | ||
middleware({ | ||
url: (handleError ? ('/' + path.join(baseDir, '404.html')) : req.url), | ||
url: (handleError ? ('/' + path.join(baseDir, '404.' + defaultExt)) : req.url), | ||
statusCode: 404 // Override the response status code | ||
@@ -119,3 +119,3 @@ }, res, next); | ||
return middleware({ | ||
url: path.join(pathname, '/index.html') | ||
url: path.join(pathname, '/index.' + defaultExt) | ||
}, res, function (err) { | ||
@@ -122,0 +122,0 @@ if (err) { |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware that works with both Express and Flatiron", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"homepage": "https://github.com/jesusabdullah/node-ecstatic", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -163,3 +163,3 @@ # Ecstatic [![build status](https://secure.travis-ci.org/jesusabdullah/node-ecstatic.png)](http://travis-ci.org/jesusabdullah/node-ecstatic) | ||
contributing, take a quick look at the contributing guidelines in | ||
./CONTRIBUTE.md . They're relatively painless, I promise. | ||
./CONTRIBUTING.md . They're relatively painless, I promise. | ||
@@ -166,0 +166,0 @@ # License: |
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
237606