[issue8572] httplib getheader() throws error instead of default

Senthil Kumaran report at bugs.python.org
Thu Apr 29 22:52:17 CEST 2010

Senthil Kumaran <orsenthil at gmail.com> added the comment:

And also, the code which is using getheader of HTTPResponse object would mostly (but incorrectly in py3k) be passing a string as default. The HTTP headers have been a dict with key,values as strings. Counchdb-python - does this make HTTP reqs? I am not sure if having int-values in the header values is proper.

So, David's last e.g seems just fine. Check if it is string and for the code's requirement, make it a list.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list