Respect trust_env on redirect.

This commit is contained in:
Cory Benfield
2014-01-31 07:36:44 +00:00
parent 326a22e888
commit d9f34c6848
+1 -1
View File
@@ -169,7 +169,7 @@ class SessionRedirectMixin(object):
# However, .netrc might have more auth for us. Let's get it if it
# does.
new_auth = get_netrc_auth(url)
new_auth = get_netrc_auth(url) if self.trust_env else None
if new_auth is not None:
prepared_request.prepare_auth(new_auth)