Fix Issue8572 - httplib getheader() throws error instead of default

This commit is contained in:
Senthil Kumaran 2010-08-02 11:04:58 +00:00
parent aed05eb6b8
commit 9f8dc4441f
3 changed files with 45 additions and 3 deletions

View file

@ -466,7 +466,8 @@ statement.
.. method:: HTTPResponse.getheader(name, default=None)
Get the contents of the header *name*, or *default* if there is no matching
header.
header. If *default* is an iterator other than a string, then the return
value will be a string consisting of items of the iterator joined by comma.
.. method:: HTTPResponse.getheaders()