diff --git a/lib/implementation.js b/lib/implementation.js index 194f10c..e91e7d4 100644 --- a/lib/implementation.js +++ b/lib/implementation.js @@ -57,7 +57,7 @@ PickerImp.prototype._dispatch = function(req, res, bypass) { if(m) { var params = self._buildParams(route.keys, m); params.query = urlParse(req.url, true).query; - self._processRoute(route.callback, params, req, res, bypass); + self._processRoute(route.callback, params, req, res, processNextRoute); } else { processNextRoute(); } @@ -109,4 +109,4 @@ PickerImp.prototype._processMiddleware = function(middleware, req, res, next) { function doCall() { middleware.call(null, req, res, next); } -}; \ No newline at end of file +};