提交 699bae69 编写于 作者: R Rafael Mendonça França

Merge pull request #8782 from tank-bohr/master

doesn't work with rubinius
......@@ -15,7 +15,7 @@ def initialize(app, routes_app = nil)
def call(env)
begin
response = (_, headers, body = @app.call(env))
status, headers, body = @app.call(env)
if headers['X-Cascade'] == 'pass'
body.close if body.respond_to?(:close)
......@@ -25,7 +25,7 @@ def call(env)
raise exception if env['action_dispatch.show_exceptions'] == false
end
exception ? render_exception(env, exception) : response
exception ? render_exception(env, exception) : [status, headers, body]
end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册