Permalink
Browse files

fixing sym and string cookie name, two cookies to browser bug.

  • Loading branch information...
stevenbristol committed May 19, 2011
1 parent 95bd199 commit 7c000af86726db5f7a2f91e01acacafb49a02f44
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -167,8 +167,8 @@ def []=(key, options)
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 @@ def delete(key, options = {})
handle_options(options)
value = @cookies.delete(key.to_s)
- @delete_cookies[key] = options
+ @delete_cookies[key.to_s] = options
value
end

0 comments on commit 7c000af

Please sign in to comment.