Open
Description
Session.trust_env = False
turns off the checking of environment variables for options including proxy settings (*_proxy
). But urllib
picks up and uses these environment proxy settings anyway. requests
should pass the trust_env
setting on to urllib
. (Although I'm not sure if urllib
has a similar override.)
(Proxy setting precedence should be sorted out here as well. They way it is now, environment proxy settings will interfere with (rather than be over-ridden by) the proxies
argument in Session.request
or requests.request
calls and the Session.proxies
config regardless of trust_env
settings.)