Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected error in Directory middleware that caused it to fail to ret…

…urn the results of nextApp in the case a file did not exist that it looked up with stat
  • Loading branch information...
commit 77b6162ac69b8851027cffd166b9813d7c4ece4a 1 parent 0ee5789
@nrstott authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/middleware.js
View
4 lib/middleware.js
@@ -94,7 +94,9 @@ exports.Directory = function(root, nextApp) {
} else {
return nextApp(req);
}
- }, function(err){ nextApp(req); });
+ }, function(err){
+ return nextApp(req);
+ });
};
};
Please sign in to comment.
Something went wrong with that request. Please try again.