aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteve <steve@lesseverything.com>2011-05-19 09:49:16 -0400
committersteve <steve@lesseverything.com>2011-05-19 09:49:16 -0400
commit7c000af86726db5f7a2f91e01acacafb49a02f44 (patch)
treeaf9354fcb2577ea115bd8258205302963ed5cb33
parent95bd19911a62fe7dbe8e72c08e29902efdcfce85 (diff)
downloadrails-7c000af86726db5f7a2f91e01acacafb49a02f44.tar.gz
rails-7c000af86726db5f7a2f91e01acacafb49a02f44.tar.bz2
rails-7c000af86726db5f7a2f91e01acacafb49a02f44.zip
fixing sym and string cookie name, two cookies to browser bug.
-rw-r--r--actionpack/lib/action_dispatch/middleware/cookies.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb
index 24ebb8fed7..0057f64dd3 100644
--- a/actionpack/lib/action_dispatch/middleware/cookies.rb
+++ b/actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -167,8 +167,8 @@ module ActionDispatch
handle_options(options)
- @set_cookies[key] = options
- @delete_cookies.delete(key)
+ @set_cookies[key.to_s] = options
+ @delete_cookies.delete(key.to_s)
value
end
@@ -181,7 +181,7 @@ module ActionDispatch
handle_options(options)
value = @cookies.delete(key.to_s)
- @delete_cookies[key] = options
+ @delete_cookies[key.to_s] = options
value
end