Comparing version 0.7.4 to 0.7.5
@@ -1,5 +0,8 @@ | ||
2014/04/17 Version 0.7.4 | ||
- Fix broken sorting on directories/files/etc | ||
2015/05/07 Version 0.7.5 | ||
- Fix HTML reflection vulnerability in certain error handlers | ||
2014/04/13 Version 0.7.3 | ||
2015/04/17 Version 0.7.4 | ||
- Fix sort ordering in directory listings | ||
2015/04/13 Version 0.7.3 | ||
- Close fstream if/when res closes, fixes potential fd leak | ||
@@ -6,0 +9,0 @@ |
@@ -63,2 +63,3 @@ // not modified | ||
res.statusCode = 500; | ||
res.setHeader('content-type', 'text/plain'); | ||
res.end(opts.error.stack || opts.error.toString() || "No specified error"); | ||
@@ -70,3 +71,4 @@ }; | ||
res.statusCode = 400; | ||
res.setHeader('content-type', 'text/plain'); | ||
res.end(opts && opts.error ? String(opts.error) : 'Malformed request.'); | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware that works with both Express and Flatiron", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"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
226536
637