diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-16 20:21:27 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-16 20:21:27 -0600 |
commit | 1bcfce0130d4fa13d56f58d5cd5e0f5de33e015f (patch) | |
tree | 0554fb51e39984a7554d4751a3ab4e4b53cca01e /actionpack/lib/action_controller | |
parent | 246b582ddf3c2ec4939be9d55018d97066d7fac8 (diff) | |
download | rails-1bcfce0130d4fa13d56f58d5cd5e0f5de33e015f.tar.gz rails-1bcfce0130d4fa13d56f58d5cd5e0f5de33e015f.tar.bz2 rails-1bcfce0130d4fa13d56f58d5cd5e0f5de33e015f.zip |
Remove set_cookie hack from rack response since we dont use cgi sessions anymore
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/cookies.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/rack_process.rb | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/cookies.rb b/actionpack/lib/action_controller/cookies.rb index 0428f2a23d..0e058085ec 100644 --- a/actionpack/lib/action_controller/cookies.rb +++ b/actionpack/lib/action_controller/cookies.rb @@ -67,6 +67,8 @@ module ActionController #:nodoc: cookie = @cookies[name.to_s] if cookie && cookie.respond_to?(:value) cookie.size > 1 ? cookie.value : cookie.value[0] + else + cookie end end diff --git a/actionpack/lib/action_controller/rack_process.rb b/actionpack/lib/action_controller/rack_process.rb index e783839f34..778c3c256f 100644 --- a/actionpack/lib/action_controller/rack_process.rb +++ b/actionpack/lib/action_controller/rack_process.rb @@ -84,10 +84,6 @@ module ActionController #:nodoc: end def out(&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) @@ -132,7 +128,7 @@ module ActionController #:nodoc: convert_language! convert_expires! set_status! - # set_cookies! + set_cookies! end private |