Joonas Kuorilehto <jones...@derbian.fi> added the comment:

Michele, in your patch:

+            authorization = ("Authorization: Basic %s\r\n" %
+                             b64encode('a%20b:c%20d'))

This is wrong. See the original report by me and RFC 2617. The username and 
password MUST NOT be url encoded before base64. That is the original problem. 
The point is that this test should fail with urllib before the change and not 
fail with the fix.

Secondly, I think unquote will fail when given a None. For me, some other unit 
tests caught this when I had the unquote where the splituser is called. I 
didn't run your code but are other urllib tests ok for you?

I like your change of having the base64 explicitly there and not as a magic 
string is a good idea.

Senthil, could you provide the better alternative for the class field abuse, 
please?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13642>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to