mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fix failing tests.
This commit is contained in:
@@ -275,6 +275,10 @@ class Session(SessionRedirectMixin):
|
||||
# Prepare the Request.
|
||||
prep = req.prepare()
|
||||
|
||||
# If auth hooks are present, they aren't passed to `dispatch_hook`
|
||||
# As such, we need to update the original hooks dictionary with them
|
||||
hooks.update(prep.hooks)
|
||||
|
||||
# Send the request.
|
||||
resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user