diff options
author | R David Murray <rdmurray@bitdance.com> | 2015-04-16 20:36:18 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2015-04-16 20:36:18 (GMT) |
commit | 4c7f995e805f4fddcf54b90f35ea30c7e26a4a95 (patch) | |
tree | 870ddf9b8e0d8f65dddb5f990c58d69968979d66 /Misc | |
parent | 6297fecbd1fc534176d65a6a27c01b4667a6b417 (diff) | |
download | cpython-4c7f995e805f4fddcf54b90f35ea30c7e26a4a95.zip cpython-4c7f995e805f4fddcf54b90f35ea30c7e26a4a95.tar.gz cpython-4c7f995e805f4fddcf54b90f35ea30c7e26a4a95.tar.bz2 |
#7159: generalize urllib prior auth support.
This fix is a superset of the functionality introduced by the issue #19494
enhancement, and supersedes that fix. Instead of a new handler, we have a new
password manager that tracks whether we should send the auth for a given uri.
This allows us to say "always send", satisfying #19494, or track that we've
succeeded in auth and send the creds right away on every *subsequent* request.
The support for using the password manager is added to AbstractBasicAuth,
which means the proxy handler also now can handle prior auth if passed
the new password manager.
Patch by Akshit Khurana, docs mostly by me.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -722,6 +722,7 @@ Magnus Kessler Lawrence Kesteloot Vivek Khera Dhiru Kholia +Akshit Khurana Mads Kiilerich Jason Killen Jan Kim @@ -37,6 +37,10 @@ Core and Builtins Library ------- +- Issue #7159: urllib.request now supports sending auth credentials + automatically after the first 401. This enhancement is a superset of the + enhancement from issue #19494 and supersedes that change. + - Issue #23703: Fix a regression in urljoin() introduced in 901e4e52b20a. Patch by Demian Brecht. |