Skip to content

Commit

Permalink
fix: reapply #168
Browse files Browse the repository at this point in the history
  • Loading branch information
David Longworth committed Aug 10, 2017
1 parent b4db30b commit e5f1e77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dadi/lib/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ Api.prototype.listener = function (req, res) {
try {
// if end of the stack, no middleware could handle the current
// request, so get matching routes from the loaded page components and
// add them to the stack after the cache handler but just before the
// add them to the stack just before the 404 handler, then continue the loop
// 404 handler, then continue the loop

if (
this.stack[stackIdx + 1] &&
this.stack[stackIdx + 1].name === 'notFound' &&
Expand Down

0 comments on commit e5f1e77

Please sign in to comment.