Skip to content

Commit

Permalink
Minimizing relying on the router for error termination
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jul 10, 2018
1 parent 41e4486 commit 5ab2122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function zuul (req, res, next) {

rate(req, res, e => {
if (e !== void 0) {
next(e);
res.error(e);
} else if (protectd === true) {
next();
} else {
Expand Down

0 comments on commit 5ab2122

Please sign in to comment.