diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-24 16:45:46 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-24 16:45:46 (GMT) |
commit | 8526adfbd901f766b90f0116d8a40a1a4bdc8fb7 (patch) | |
tree | 22dbb5398f8107da54c2e07d15c4ef7c9a6ee967 /Lib/test | |
parent | 2d9856d6ce7b338793e5b3c26206500cee2687d7 (diff) | |
download | cpython-8526adfbd901f766b90f0116d8a40a1a4bdc8fb7.zip cpython-8526adfbd901f766b90f0116d8a40a1a4bdc8fb7.tar.gz cpython-8526adfbd901f766b90f0116d8a40a1a4bdc8fb7.tar.bz2 |
Fix for Issue3819 - urllib2 sends Basic auth across redirects
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_urllib2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 30b7649..c0366dd 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -1134,7 +1134,8 @@ class HandlerTests(unittest.TestCase): auth_hdr_value = 'Basic '+base64.encodestring(userpass).strip() self.assertEqual(http_handler.requests[1].get_header(auth_header), auth_hdr_value) - + self.assertEqual(http_handler.requests[1].unredirected_hdrs[auth_header], + auth_hdr_value) # if the password manager can't find a password, the handler won't # handle the HTTP auth error password_manager.user = password_manager.password = None |