]> granicus.if.org Git - python/commitdiff
Rewording the getheader method of HTTPResponse.
authorSenthil Kumaran <orsenthil@gmail.com>
Mon, 2 Aug 2010 17:09:02 +0000 (17:09 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Mon, 2 Aug 2010 17:09:02 +0000 (17:09 +0000)
Doc/library/http.client.rst

index be4b28a1022c5920f2d1c05cc06bbe04b3baeba9..35674bbb0a0396c4da4c90301906fddab7393456 100644 (file)
@@ -465,9 +465,10 @@ statement.
 
 .. method:: HTTPResponse.getheader(name, default=None)
 
-   Get the contents of the header *name*, or *default* if there is no matching
-   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.
+   Return the value of the header *name*, or *default* if there is no header
+   matching *name*.  If there is more than one  header with the name *name*,
+   return all of the values joined by ', '.  If 'default' is any iterable other
+   than a single string, its elements are similarly returned joined by commas.
 
 
 .. method:: HTTPResponse.getheaders()