visionmedia/express — Issue #1042: callback gets called twice on incoming requests (on master branch)
Author: matomesc
Created: 2012-03-09 16:02:14+00:00
State: open

Alright, i have this:

```javascript
var express = require('express');
var app = express();

var count = 0;
app.get('*', function (req, res, next) {
count += 1;
console.log(count);
res.send(count.toString());
});
app.listen(8000);
```

And the callback gets called twice - count prints 2 to `stdout` while the client gets `1.toString()`.

Can someone enlighten me on why this happens?