Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Special case in deprecated CGI proxy layer for Mongrel CGI cookies [#…
…1957 state:resolved]
  • Loading branch information
josh committed Feb 17, 2009
1 parent c33ab11 commit b6e56ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/lib/action_controller/cgi_process.rb
Expand Up @@ -47,6 +47,11 @@ def self.dispatch_cgi(app, cgi, out = $stdout)
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|
Expand Down

1 comment on commit b6e56ef

@Manfred
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are the tests?

Please sign in to comment.