summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-10-03 18:26:07 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-10-03 18:26:07 (GMT)
commitaa5f49e4c132c217ffacb85261443408c3a524df (patch)
tree105771758c16f8d9061b9c26fac30babb6530b94 /Lib/httplib.py
parenta9bd0cc67e77d465ae747071377407f00d62f19c (diff)
downloadcpython-aa5f49e4c132c217ffacb85261443408c3a524df.zip
cpython-aa5f49e4c132c217ffacb85261443408c3a524df.tar.gz
cpython-aa5f49e4c132c217ffacb85261443408c3a524df.tar.bz2
Merged revisions 85205 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85205 | senthil.kumaran | 2010-10-03 23:52:42 +0530 (Sun, 03 Oct 2010) | 3 lines Fix Issue10012 - httplib headers, which are (sometimes mistakenly) int are explicitly cast to str (bytes - in py3k). ........
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index eb10eba..526509c 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -915,7 +915,7 @@ class HTTPConnection:
if self.__state != _CS_REQ_STARTED:
raise CannotSendHeader()
- hdr = '%s: %s' % (header, '\r\n\t'.join(values))
+ hdr = '%s: %s' % (header, '\r\n\t'.join([str(v) for v in values]))
self._output(hdr)
def endheaders(self, message_body=None):