Comparing version 2.2.1 to 2.2.2
@@ -0,1 +1,4 @@ | ||
2019/05/03 Version 2.2.2 | ||
- Backport redirects bugfix | ||
2017/06/06 Version 2.2.1 | ||
@@ -2,0 +5,0 @@ - Fix version number in CHANGELOG.md |
@@ -147,3 +147,3 @@ #! /usr/bin/env node | ||
// 302 to / if necessary | ||
if (!parsed.pathname.match(/\/$/)) { | ||
if (!pathname.match(/\/$/)) { | ||
res.statusCode = 302; | ||
@@ -388,3 +388,3 @@ res.setHeader('location', parsed.pathname + '/' + | ||
return pieces.map(function (piece) { | ||
return path.normalize(pieces.map(function (piece) { | ||
piece = decodeURIComponent(piece); | ||
@@ -397,3 +397,3 @@ | ||
return piece; | ||
}).join('/'); | ||
}).join('/')); | ||
} | ||
@@ -400,0 +400,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware that works with both Express and Flatiron", | ||
"version": "2.2.1", | ||
"version": "2.2.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
6
3604440
69
1222