[Patch #1574068 by Scott Dial] urllib and urllib2 were using
commit12c03f2359e50421824ae074dffda8e0fe93c028
authorandrew.kuchling <andrew.kuchling@6015fed2-1504-0410-9fe1-9d1591cc4771>
Fri, 27 Oct 2006 17:13:33 +0000 (27 17:13 +0000)
committerandrew.kuchling <andrew.kuchling@6015fed2-1504-0410-9fe1-9d1591cc4771>
Fri, 27 Oct 2006 17:13:33 +0000 (27 17:13 +0000)
treedd3c69f3a5424d25da49d329af0d2a3008c91d35
parent56da44ba20e24c1984f4817170c8f85e1ad829c1
[Patch #1574068 by Scott Dial] urllib and urllib2 were using
base64.encodestring() for encoding authentication data.
encodestring() can include newlines for very long input, which
produced broken HTTP headers.

2.4 backport candidate, probably.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@52482 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/urllib.py
Lib/urllib2.py
Misc/NEWS