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

corrected name of variable req #570

Merged
merged 1 commit into from Jul 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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