Skip to content

Commit

Permalink
Update sessions.py
Browse files Browse the repository at this point in the history
This change will make the hierarchy request **kwargs -> Session args -> environment to be respected. This also solves problems with pip as discussed [here](pypa/pip#9691 (comment))  and  psf#5735
  • Loading branch information
junqfisica authored Nov 23, 2021
1 parent 590350f commit 570b20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def request(self, method, url,
)
prep = self.prepare_request(req)

proxies = proxies or {}
proxies = proxies or self.proxies

settings = self.merge_environment_settings(
prep.url, proxies, stream, verify, cert
Expand Down

0 comments on commit 570b20a

Please sign in to comment.