Permalink
Browse files

Merge branch 'master' of github.com:creationix/node-router

  • Loading branch information...
2 parents 36a3a78 + 996a2bb commit e4f62e082fe2f97a34578a97aa80a8d5f3cf0488 @creationix committed Apr 9, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/node-router.js
View
@@ -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) {

0 comments on commit e4f62e0

Please sign in to comment.