aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-02-16 22:17:54 -0600
committerJoshua Peek <josh@joshpeek.com>2009-02-16 22:17:54 -0600
commitb6e56efe07cb3c2e999216f995403aa9206226a2 (patch)
tree1bb84085af42f20e71dbc0d820925b28ed45b2cf /actionpack/lib
parentc33ab118f8207f2fe6226a01587ee1e950055873 (diff)
downloadrails-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.rb5
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|