[issue1368312] fix for scheme identification in urllib2?

2008-05-04 Thread david reid
david reid <[EMAIL PROTECTED]> added the comment: I've run into this as an issue with a server that replies with both digest and basic auth. When parsing the keys in the header it's possible to detect the start of a different auth method, so I'd suggest parsing the www-

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-04 Thread david reid
New submission from david reid <[EMAIL PROTECTED]>: In urllib2 when using reusing a Request calling add_header doesn't work when an unredirected_header has been added. A good example (and the one that caught me out) is content-type. When making a POST request with no content-t

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-04 Thread david reid
david reid <[EMAIL PROTECTED]> added the comment: Looks like a sensible, simple fix to me :-) __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2695> __ __

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread david reid
david reid <[EMAIL PROTECTED]> added the comment: The patch is inline. There's not much to it :-) Agree with your suggestion to avoid calling lower() twice. __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2695] Ignore case when checking algorithm in urllib2

2008-04-26 Thread david reid
New submission from david reid <[EMAIL PROTECTED]>: Small change to allow get_algorithm_impls to correctly detect when lower case algorithm strings are passed. I recently ran into a server that sent 'md5' and so this function failed without this small change. def get_algo