summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-08-02 17:09:02 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-08-02 17:09:02 (GMT)
commit790f8316486d890f7c9b0fb9ab67d8120f4112ac (patch)
tree36e446b0da46ddadb3c96c52073d4913fa1bd34b
parentbfc8fe4d2f6b2296a16b7f7d9634437c40950dd8 (diff)
downloadcpython-790f8316486d890f7c9b0fb9ab67d8120f4112ac.zip
cpython-790f8316486d890f7c9b0fb9ab67d8120f4112ac.tar.gz
cpython-790f8316486d890f7c9b0fb9ab67d8120f4112ac.tar.bz2
Rewording the getheader method of HTTPResponse.
-rw-r--r--Doc/library/http.client.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index be4b28a..35674bb 100644
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -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()