mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Comment & replace something that keeps disappearing
This commit is contained in:
@@ -225,6 +225,7 @@ class Request(RequestHooksMixin):
|
||||
# Note that prepare_auth must be last to enable authentication schemes
|
||||
# such as OAuth to work on a fully prepared request.
|
||||
p.prepare_auth(self.auth)
|
||||
# This MUST go after prepare_auth. Authenticators could add a hook
|
||||
p.prepare_hooks(self.hooks)
|
||||
|
||||
return p
|
||||
|
||||
@@ -130,8 +130,9 @@ class SessionRedirectMixin(object):
|
||||
timeout=timeout,
|
||||
verify=verify,
|
||||
cert=cert,
|
||||
proxies=proxies
|
||||
)
|
||||
proxies=proxies,
|
||||
hooks=req.hooks,
|
||||
)
|
||||
|
||||
i += 1
|
||||
yield resp
|
||||
|
||||
Reference in New Issue
Block a user