Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correct problem where second router in the an app.use sequence was be…

…ing setup two times causing an error
  • Loading branch information...
commit 6afb84eb215639ca8bc005d04f39c176f61b3183 1 parent 05c6ee2
@nrstott authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bogart.js
View
4 lib/bogart.js
@@ -157,9 +157,9 @@ App.prototype.start = function(port, host) {
if (Router.isRouter(descriptor.middleware)) {
descriptor.middleware.nextApp = app;
app = descriptor.middleware;
+ } else {
+ app = descriptor.middleware.apply(descriptor.middleware, descriptor.args.concat([ app ]));
}
-
- app = descriptor.middleware.apply(descriptor.middleware, descriptor.args.concat([ app ]));
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.