send
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -0,1 +1,6 @@ | ||
0.7.4 / 2014-08-04 | ||
================== | ||
* Fix serving index files without root dir | ||
0.7.3 / 2014-07-29 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -457,3 +457,3 @@ | ||
// index file support | ||
if (this._index.length && this.hasTrailingSlash()) { | ||
if (this._index.length && this.path[this.path.length - 1] === '/') { | ||
this.sendIndex(path); | ||
@@ -577,3 +577,3 @@ return res; | ||
var p = path + self._index[i]; | ||
var p = join(path, self._index[i]); | ||
@@ -589,4 +589,2 @@ debug('stat "%s"', p); | ||
if (!this.hasTrailingSlash()) path += '/'; | ||
next(); | ||
@@ -593,0 +591,0 @@ }; |
{ | ||
"name": "send", | ||
"description": "Better streaming static file server with Range and conditional-GET support", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
25374
622