未验证 提交 9f152a60 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #33401 from pinewong/patch-1

Fix problem with document expiration in ActionController::HttpAuthentication::Basic
......@@ -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.
先完成此消息的编辑!
想要评论请 注册