Comparing version 4.1.1 to 4.1.2
@@ -0,1 +1,4 @@ | ||
2019/04/27 Version 4.1.2 | ||
- Redirects bugfix | ||
2019/04/20 Version 4.1.1 | ||
@@ -2,0 +5,0 @@ - Respect handleError for 400 and 500 errors |
@@ -23,3 +23,3 @@ #! /usr/bin/env node | ||
return pieces.map((rawPiece) => { | ||
return path.normalize(pieces.map((rawPiece) => { | ||
const piece = decodeURIComponent(rawPiece); | ||
@@ -32,3 +32,3 @@ | ||
return piece; | ||
}).join('/'); | ||
}).join('/')); | ||
} | ||
@@ -393,4 +393,5 @@ | ||
// 302 to / if necessary | ||
if (!parsed.pathname.match(/\/$/)) { | ||
if (!pathname.match(/\/$/)) { | ||
res.statusCode = 302; | ||
@@ -397,0 +398,0 @@ const q = parsed.query ? `?${parsed.query}` : ''; |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"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
317716