Author: christian.heimes
Date: Mon Nov 5 16:27:23 2007
New Revision: 58858
Modified:
python/branches/py3k-pep3137/Lib/httplib.py
Log:
Here is another (undetected) bug that was caused by str(bytes())
Modified: python/branches/py3k-pep3137/Lib/httplib.py
==============================================================================
--- python/branches/py3k-pep3137/Lib/httplib.py (original)
+++ python/branches/py3k-pep3137/Lib/httplib.py Mon Nov 5 16:27:23 2007
@@ -827,6 +827,7 @@
if self.port == HTTP_PORT:
self.putheader('Host', host_enc)
else:
+ host_enc = host_enc.decode("ascii")
self.putheader('Host', "%s:%s" % (host_enc, self.port))
# note: we are assuming that clients will not attempt to set these
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins