aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/cgi/process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/cgi/process.rb')
-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 ffcad5666a..34b97776f5 100644
--- a/actionpack/lib/action_controller/cgi/process.rb
+++ b/actionpack/lib/action_controller/cgi/process.rb
@@ -45,6 +45,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|