From 9f8dc4441fa1f053a150abedd3dfb99f671a75b9 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Mon, 2 Aug 2010 11:04:58 +0000 Subject: Fix Issue8572 - httplib getheader() throws error instead of default --- Doc/library/http.client.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Doc/library/http.client.rst') diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index a29e3644a5..be4b28a102 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -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() -- cgit v1.2.1