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:
parent
c33ab118f8
commit
b6e56efe07
1 changed files with 5 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue