Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e4f62e082fe2f97a34578a97aa80a8d5f3cf0488 2 parents 36a3a78 + 996a2bb
@creationix authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/node-router.js
View
4 lib/node-router.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.