visionmedia/express — Issue #894: app.use(express.static) seems to kill following middleware calls
Author: admanb
Created: 2011-11-17 21:02:37+00:00
State: open

This is my app.configure:

```javascript
app.configure(function(){
app.set('views', __dirname + '/views');
app.use(express.favicon());
app.use(express.bodyParser( { keepExtensions: true } ));
app.use(express.cookieParser());
app.use(express.methodOverride());
app.use(require('stylus').middleware({ src: __dirname + '/public' }));
app.use(app.router);
app.use(express.logger({ format: '\x1b[1m:method\x1b[0m \x1b[33m:url\x1b[0m :response-time ms' }));
app.use(express.static(__dirname + '/public'));
});
```

When it's organized like that, everything works fine, but if I swap logger and static, logger stops working. Ditto if I move bodyParser after static.

This is on express 2.5.1.