This commit is contained in:
Miroslav Stampar 2010-06-10 16:23:39 +00:00
parent 77691b8e16
commit d56cc09fb7

View File

@ -315,8 +315,13 @@ class HTTPConnection(httplib.HTTPConnection):
else:
raise CannotSendHeader()
for header in ['Host', 'Accept-Encoding']:
if header in self._headers:
str = '%s: %s' % (header, self._headers[header])
self._output(str)
del self._headers[header]
for header, value in self._headers.items():
print header, value
str = '%s: %s' % (header, value)
self._output(str)