rack/rack — pull request #607 by davidcelis (2013-09-29 00:08:47+00:00)
Title: Close the original body from Rack::ETag

The Rack spec states:

> If the Body responds to `close`, it will be called after iteration. If
> the body is replaced by a middleware after action, the original body
> must be closed first, if it responds to close.

If Rack::ETag replaces the response body, close the original first.

Signed-off-by: David Celis