Comparing version 0.4.7 to 0.4.8
@@ -105,3 +105,3 @@ var ecstatic = require('../ecstatic'), | ||
html += '<tr><td><code>(' + perms(file[1]) + ')</code> <a href="' | ||
+ ent.encode(encodeURI( | ||
+ ent.encode(decodeURI( | ||
req.url.replace(/\/$/, '') | ||
@@ -108,0 +108,0 @@ + '/' |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple static file server middleware that works with both Express and Flatiron", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"homepage": "https://github.com/jesusabdullah/node-ecstatic", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -73,2 +73,11 @@ var test = require('tap').test, | ||
code: 200 | ||
}, | ||
'subdir_with space' : { | ||
code: 302, | ||
location: 'subdir_with space/' | ||
}, | ||
'subdir_with space/index.html' : { | ||
code: 200, | ||
type: 'text/html', | ||
body: 'index :)\n' | ||
} | ||
@@ -75,0 +84,0 @@ }; |
225507
29
871