Skip to content

Commit

Permalink
Merge pull request #33401 from pinewong/patch-1
Browse files Browse the repository at this point in the history
Fix problem with document expiration in ActionController::HttpAuthentication::Basic
  • Loading branch information
rafaelfranca committed Jul 20, 2018
2 parents 01429a6 + bd90629 commit 9f152a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_controller/metal/http_authentication.rb
Expand Up @@ -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
Expand Down

0 comments on commit 9f152a6

Please sign in to comment.