Skip to content
Myr

Fixed for middleware stacked via createServer()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 898fb0f · Browse files · 1 file+8 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−1 removed

  • other:+8 added−1 removed

1 file+8 added−1 removed

modified:lib/express/server.js+8 added-1 removed
31 unmodified lines
32 this.isCallbacks = {};33 this.viewHelpers = {};34 this.dynamicViewHelpers = {};35 this.errorHandlers = [];36 connect.Server.call(this, middleware || []);36 connect.Server.call(this, []);3738 // Default "home" to / 39 this.set('home', '/');40
15 unmodified lines
56 }57 next();58 });5960 // Apply middleware61 if (middleware) {62 middleware.forEach(function(fn){63 self.use(fn);64 });65 }6667 // Use router, expose as app.get(), etc68 var fn = router(function(app){ self.routes = app; });69 this.__defineGetter__('router', function(){70 this.__usedRouter = true;
381 unmodified lines