1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Special case in deprecated CGI proxy layer for Mongrel CGI cookies [#1957 state:resolved]

This commit is contained in:
Joshua Peek 2009-02-16 22:17:54 -06:00
parent c33ab118f8
commit b6e56efe07

View file

@ -47,6 +47,11 @@ module ActionController #:nodoc:
out.sync = false if out.respond_to?(:sync=)
headers['Status'] = status.to_s
if headers.include?('Set-Cookie')
headers['cookie'] = headers.delete('Set-Cookie').split("\n")
end
out.write(cgi.header(headers))
body.each { |part|