未验证 提交 bd906297 编写于 作者: 黄松 提交者: GitHub

Fix basic auth problem in ActionController::HttpAuthentication::Basic doc

上级 01429a66
......@@ -56,8 +56,8 @@ module HttpAuthentication
# In your integration tests, you can do something like this:
#
# def test_access_granted_from_xml
# @request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(users(:dhh).name, users(:dhh).password)
# get "/notes/1.xml"
# headers = { 'HTTP_AUTHORIZATION' => ActionController::HttpAuthentication::Basic.encode_credentials(users(:dhh).name, users(:dhh).password }
# get "/notes/1.xml", headers: headers
#
# assert_equal 200, status
# end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册