method
call
v3.2.1 -
Show latest stable
- Class:
ActionDispatch::Cookies
call(env)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 336
def call(env)
cookie_jar = nil
status, headers, body = @app.call(env)
if cookie_jar = env['action_dispatch.cookies']
cookie_jar.write(headers)
if headers[HTTP_HEADER].respond_to?(:join)
headers[HTTP_HEADER] = headers[HTTP_HEADER].join("\n")
end
end
[status, headers, body]
end