Skip to content
Myr

.netrc settings shouldn't blow away explicit auth settings on a session

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Vikram Oberoi · committed by Vikram Oberoi · parent 2b62980 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/sessions.py+2 added-2 removed
287 unmodified lines
288 env_proxies = get_environ_proxies(url) or {}289 for (k, v) in env_proxies.items():290 proxies.setdefault(k, v)291292 # Set environment's basic authentication.293 if not auth:292 # Set environment's basic authentication if not explicitly set.293 if not auth and not self.auth:294 auth = get_netrc_auth(url)295296 # Look for configuration.297 if not verify and verify is not False:
207 unmodified lines