Comparing version 0.8.0 to 0.8.1
@@ -0,1 +1,6 @@ | ||
0.8.1 / 2014-08-05 | ||
================== | ||
* Fix `extensions` behavior when file already has extension | ||
0.8.0 / 2014-08-05 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -26,2 +26,3 @@ | ||
*/ | ||
var extname = path.extname | ||
var maxMaxAge = 60 * 60 * 24 * 365 * 1000; // 1 year | ||
@@ -570,3 +571,5 @@ var resolve = path.resolve | ||
fs.stat(path, function onstat(err, stat) { | ||
if (err && err.code === 'ENOENT' && path[path.length - 1] !== sep) { | ||
if (err && err.code === 'ENOENT' | ||
&& !extname(path) | ||
&& path[path.length - 1] !== sep) { | ||
// not found, check extensions | ||
@@ -573,0 +576,0 @@ return next(err) |
{ | ||
"name": "send", | ||
"description": "Better streaming static file server with Range and conditional-GET support", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -92,2 +92,3 @@ # send | ||
example value that will serve extension-less HTML files: `['html', 'htm']`. | ||
This is skipped if the requested file already has an extension. | ||
@@ -94,0 +95,0 @@ #### index |
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
26751
658
167