提交 97c65aa1 编写于 作者: A Aaron Patterson

remove more env access

上级 7de86d2c
......@@ -510,10 +510,10 @@ def process(action, *args)
@request.env.delete 'HTTP_COOKIE'
if cookies = @request.env['action_dispatch.cookies']
if @request.have_cookie_jar?
unless @response.committed?
cookies.write(@response)
self.cookies.update(cookies.instance_variable_get(:@cookies))
@request.cookie_jar.write(@response)
self.cookies.update(@request.cookie_jar.instance_variable_get(:@cookies))
end
end
@response.prepare!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册