Comparing version 0.6.1 to 0.6.2
@@ -41,3 +41,3 @@ var matcher = require('./matcher'); | ||
if (route.rewrite) { | ||
req.url = url = route.rewrite(req.params); | ||
req.url = url = route.rewrite(req.params)+(index === -1 ? '' : req.url.substr(index)); | ||
} | ||
@@ -44,0 +44,0 @@ route.fn(req, res, loop); |
{ | ||
"name":"router", | ||
"version":"0.6.1", | ||
"version":"0.6.2", | ||
"description":"A lean and mean http router", | ||
@@ -5,0 +5,0 @@ "keywords":["connect","middleware","router","route","http"], |
13971