From b6e56efe07cb3c2e999216f995403aa9206226a2 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 16 Feb 2009 22:17:54 -0600 Subject: Special case in deprecated CGI proxy layer for Mongrel CGI cookies [#1957 state:resolved] --- actionpack/lib/action_controller/cgi_process.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/lib') 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| -- cgit v1.2.3