Fixed a bug where cookies wouldn't be set if a symbol was used instead of a string as the key

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 6ca5eba3
*SVN*
* Fixed a bug where cookies wouldn't be set if a symbol was used instead of a string as the key
* Added assert_cookie_equal to assert the contents of a named cookie
* Fixed bug in page caching that prevented it from working at all
......
......@@ -48,7 +48,7 @@ def []=(name, options)
options = options.inject({}) { |options, pair| options[pair.first.to_s] = pair.last; options }
options["name"] = name.to_s
else
options = { "name" => name, "value" => options }
options = { "name" => name.to_s, "value" => options }
end
set_cookie(options)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册