rails/rails — comment on commit c159b01b85ac3955c53cd6b8a62d5d90ee973cfb
File: actionpack/lib/action_dispatch/middleware/body_proxy.rb line 15
By josevalim:

Bro, it needs to be like the pull request I sent to rack. It needs to be:

begin
@body.close
ensure
@block.call
end

The current way will always call the block even if `return if @closed` returns.