mcavage/node-restify — Issue #56: streaming (at least with `filed`) doesn't work
Author: trentm
Created: 2012-01-21 00:46:41+00:00
State: open

This is restify 1.0 (https://github.com/mcavage/node-restify/tarball/master#0dfba4fdfd9def5111c29dffd241f344ff1293a8).

```
...
server.get("/foo.txt", function (req, res, next) {
filed('tmp/foo.txt').pipe(res);
next();
});
...
```

where "filed" is node-filed. The client does not get the "foo.txt" contents before the connection is closed, although the headers look right.

```
$ curl -iSs http://0.0.0.0:8080/foo.txt
HTTP/1.1 200 OK
content-type: application/octet-stream
etag: 5138fda15066d6ef868a67d3328b72d6
last-modified: Fri, 20 Jan 2012 16:30:33 -0800
Connection: keep-alive
Transfer-Encoding: chunked

$
```