flatiron/flatiron — Issue #36: Simple middleware seems to block requests
Author: dscape
Created: 2012-03-10 01:14:08+00:00
State: open

``` js
app.use(flatiron.plugins.http
, { before:
[ function(req) {
console.log(
{"method": req.method, "url": req.url, "date": Date.now()});
}
]
}
);
```
This simple canonical logger example breaks flatiron. The way I see it this is always a bug:

* Either it actually is a bug that needs to be fixed
* Or the fact that I didn't find a canonical example of a logger (or any simple middleware for that matter) is a bug