summaryrefslogtreecommitdiffstats
path: root/Lib/popen2.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-11-09 16:46:51 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-11-09 16:46:51 (GMT)
commit52a17becbcc8bba8d4750926c58f6ac6e41464b7 (patch)
tree3fe54eea69cba3a671c9d03d85d9ee179bc58b55 /Lib/popen2.py
parent6383c2d1a677f168ed2a4dfc9cb28f93ec327a0e (diff)
downloadcpython-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/popen2.py')
0 files changed, 0 insertions, 0 deletions