diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-09 16:46:51 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-11-09 16:46:51 (GMT) |
commit | 52a17becbcc8bba8d4750926c58f6ac6e41464b7 (patch) | |
tree | 3fe54eea69cba3a671c9d03d85d9ee179bc58b55 /Lib/mhlib.py | |
parent | 6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e (diff) | |
download | cpython-52a17becbcc8bba8d4750926c58f6ac6e41464b7.zip cpython-52a17becbcc8bba8d4750926c58f6ac6e41464b7.tar.gz cpython-52a17becbcc8bba8d4750926c58f6ac6e41464b7.tar.bz2 |
Fix SF bug 468948 & 451295: urllib2 authentication problems
Fix contributed by Jeffrey C. Ollie.
I haven't tested the fix because the situation is non-trivial to
reproduce.
The basic solution is to get rid of the __current_realm attribute of
authentication handlers. Instead, prevent infinite retries by
checking for the presence of an Authenticate: header in the request
object that exactly matches the Authenticate: header that would be
added.
The problem prevent authentication from working correctly in the
presence of retries.
Ollie mentioned that digest authentication has the same problem and I
applied the same solution there.
Diffstat (limited to 'Lib/mhlib.py')
0 files changed, 0 insertions, 0 deletions