diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-08-19 16:29:02 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-08-19 16:29:02 -0500 |
commit | 977317da55b6ba9bbb1326392516480902145c5b (patch) | |
tree | 1583c217c4d91822d476da91532bb0190140aa8e | |
parent | e9ae2b2f4cae3e9ba4fc8ce91de951d18879af8b (diff) | |
download | rails-977317da55b6ba9bbb1326392516480902145c5b.tar.gz rails-977317da55b6ba9bbb1326392516480902145c5b.tar.bz2 rails-977317da55b6ba9bbb1326392516480902145c5b.zip |
hack around CGI session close
-rw-r--r-- | actionpack/lib/action_controller/rack_process.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/rack_process.rb b/actionpack/lib/action_controller/rack_process.rb index 221613b854..69bfc549c1 100644 --- a/actionpack/lib/action_controller/rack_process.rb +++ b/actionpack/lib/action_controller/rack_process.rb @@ -156,6 +156,10 @@ end_msg end def out(output = $stdout, &block) + # Nasty hack because CGI sessions are closed after the normal + # prepare! statement + set_cookies! + @block = block @status = headers.delete("Status") if [204, 304].include?(status.to_i) @@ -200,7 +204,7 @@ end_msg convert_language! convert_expires! set_status! - set_cookies! + # set_cookies! end private |