diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-02-16 22:17:54 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-02-16 22:17:54 -0600 |
commit | b6e56efe07cb3c2e999216f995403aa9206226a2 (patch) | |
tree | 1bb84085af42f20e71dbc0d820925b28ed45b2cf /actionpack/lib | |
parent | c33ab118f8207f2fe6226a01587ee1e950055873 (diff) | |
download | rails-b6e56efe07cb3c2e999216f995403aa9206226a2.tar.gz rails-b6e56efe07cb3c2e999216f995403aa9206226a2.tar.bz2 rails-b6e56efe07cb3c2e999216f995403aa9206226a2.zip |
Special case in deprecated CGI proxy layer for Mongrel CGI cookies [#1957 state:resolved]
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/cgi_process.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/cgi_process.rb b/actionpack/lib/action_controller/cgi_process.rb index 7e5e95e135..54ff04cfd2 100644 --- a/actionpack/lib/action_controller/cgi_process.rb +++ b/actionpack/lib/action_controller/cgi_process.rb @@ -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| |