Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #570 from royopa/patch-1
Browse files Browse the repository at this point in the history
corrected name of variable req
  • Loading branch information
wkeeling committed Jul 9, 2022
2 parents de51d5c + 2e733ce commit cba952d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -463,8 +463,8 @@ If a site requires a username/password, you can use an interceptor to pass the a
)
def interceptor(request):
if req.host == 'host_that_needs_auth':
req.headers['Authorization'] = f'Basic {auth}'
if request.host == 'host_that_needs_auth':
request.headers['Authorization'] = f'Basic {auth}'
driver.request_interceptor = interceptor
driver.get(...)
Expand Down

0 comments on commit cba952d

Please sign in to comment.