diff --git a/lib/http/base.js b/lib/http/base.js index 96e623e7..26d2a0a8 100644 --- a/lib/http/base.js +++ b/lib/http/base.js @@ -527,7 +527,7 @@ Route.prototype.match = function match(pathname) { if (key) params[key] = item; - params[i] = item; + params[i - 1] = item; } return params;