Message3766
Logged In: YES
user_id=169128
I have corrected the patch to reflect proper Basic
Authentication:
--- /var/local/cvs/python/dist/src/Lib/urllib2.py Thu
Mar 1 09:46:07 2001
+++ /usr/local/lib/python2.1/urllib2.py Thu Mar 8 17:23:31
2001
@@ -477,8 +477,8 @@
host, XXX = splithost(r_type)
if '@' in host:
user_pass, host = host.split('@', 1)
- user_pass = base64.encode_string(unquote
(user_passw)).strip()
- req.addheader('Proxy-Authorization', user_pass)
+ user_pass = "Basic " + base64.encodestring
(unquote(user_pass)).strip()
+ req.add_header('Proxy-Authorization',
user_pass)
host = unquote(host)
req.set_proxy(host, type)
if orig_type == type: |
|
Date |
User |
Action |
Args |
2007-08-23 13:53:28 | admin | link | issue406683 messages |
2007-08-23 13:53:28 | admin | create | |
|