seancribbs/webmachine-ruby — pull request #45 by samwgoldman (2012-04-27 16:21:21+00:00)
Title: Fix chunked response bodies through the rack adapter.

Fixes #44

Let me know if this looks good.

Changes:
* Allow streaming response bodies to pass through the rack adapter. As long as webmachine sets the Transfer-Encoding header, rack knows what to do
* Use rack/test instead of directly calling the app with an explicit env. This was required to use Rack::Response#finish, which returns self as the response body instead of an array of strings.
* Change the test for empty response bodies, which had a bad assertion (webmachine behaved correctly, however)