flatiron/union — Issue #12: Can't pipe
Author: mmalecki
Created: 2011-12-22 16:08:29+00:00
State: open

When used like that:

```js
var fs = require('fs'),
union = require('union');

union.createServer({
before: [
function (req, res, next) {
var writeStream = fs.createWriteStream('req');
req.pipe(writeStream);

writeStream.on('close', function () {
res.writeHead(200);
res.end('Wrote to a stream\n');
});
}
]
}).listen(9000);
```

file `req` gets created but no data is found there (empty file) after I `POST` something to `localhost:9000`. Can someone confirm it should work so that I can write a test case?

It happens on current `master` - 3eeeef8e5b9fb39320f7937921b5a286203d85c2.