Skip to content

Commit

Permalink
fixing sym and string cookie name, two cookies to browser bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbristol committed May 19, 2011
1 parent 95bd199 commit 7c000af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/action_dispatch/middleware/cookies.rb
Expand Up @@ -167,8 +167,8 @@ def []=(key, options)


handle_options(options) handle_options(options)


@set_cookies[key] = options @set_cookies[key.to_s] = options
@delete_cookies.delete(key) @delete_cookies.delete(key.to_s)
value value
end end


Expand All @@ -181,7 +181,7 @@ def delete(key, options = {})
handle_options(options) handle_options(options)


value = @cookies.delete(key.to_s) value = @cookies.delete(key.to_s)
@delete_cookies[key] = options @delete_cookies[key.to_s] = options
value value
end end


Expand Down

0 comments on commit 7c000af

Please sign in to comment.