Skip to content

Commit

Permalink
This is not a conclusive fix, and could be a breaking change. Committ…
Browse files Browse the repository at this point in the history
…ing in order to merge git://github.com/Tidwell/sails.git
  • Loading branch information
mikermcneil committed Mar 8, 2013
1 parent 14e5317 commit 276d8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ function doReroute(routePlan, req, res, next) {
}
// call actual filter with next one as callback
else {
doReroute(_.first(routePlan), req, res, _.bind(doReroute, this, _.tail(routePlan), req, res, next));
doReroute(_.rest(routePlan,1), req, res, _.bind(doReroute, this, _.first(routePlan), req, res, next));
}
}
}

0 comments on commit 276d8a4

Please sign in to comment.