Skip to content
Myr

Better layout for checking.

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

authored by Cory Benfield · committed by Cory Benfield · parent 7ba5a53 · Browse files · 1 file+3 added−5 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+3 added−5 removed

  • other:+3 added−5 removed

1 file+3 added−5 removed

modified:requests/sessions.py+3 added-5 removed
161 unmodified lines
162 # authentication headers.163 original_parsed = urlparse(resp.request.url)164 redirect_parsed = urlparse(url)165166 if original_parsed.hostname != redirect_parsed.hostname:167 try:168 del headers['Authorization']169 except KeyError:170 pass166 if (original_parsed.hostname != redirect_parsed.hostname and167 'Authorization' in headers):168 del headers['Authorization']169170 # However, .netrc might have more auth for us. Let's get it if it171 # does.172 new_auth = get_netrc_auth(url)
396 unmodified lines