Skip to content

Commit

Permalink
Merge branch 'master' of github.com:creationix/node-router
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Apr 9, 2010
2 parents 36a3a78 + 996a2bb commit e4f62e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/node-router.js
Expand Up @@ -211,7 +211,9 @@ exports.getServer = function getServer(logger) {
var match = path.match(route.pattern);
if (match && match[0].length > 0) {
match.shift();
match = match.map(unescape);
match = match.map(function (part) {
return part ? unescape(part) : part;
});
match.unshift(res);
match.unshift(req);
if (route.format !== undefined) {
Expand Down

0 comments on commit e4f62e0

Please sign in to comment.