]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #13073 - Address the review comments made by Ezio.
authorSenthil Kumaran <senthil@uthcode.com>
Wed, 5 Oct 2011 15:26:49 +0000 (23:26 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Wed, 5 Oct 2011 15:26:49 +0000 (23:26 +0800)
Doc/library/http.client.rst
Lib/http/client.py

index 9ef795651ef1f8d9387efacd65d4709de330c4d2..9b1ab0fdb219b454e27f7ec18d77c3aa26eb5795 100644 (file)
@@ -475,11 +475,10 @@ also send your request step by step, by using the four functions below.
 .. method:: HTTPConnection.endheaders(message_body=None)
 
    Send a blank line to the server, signalling the end of the headers. The
-   optional message_body argument can be used to pass message body
-   associated with the request.  The message body will be sent in
-   the same packet as the message headers if possible.  The
-   message_body should be a string.
-
+   optional *message_body* argument can be used to pass a message body
+   associated with the request.  The message body will be sent in the same
+   packet as the message headers if it is string, otherwise it is sent in a
+   separate packet.
 
 .. method:: HTTPConnection.send(data)
 
index 3f0272942ea49adc4768517b1108b8fe39d74a55..8400914fca9bec7fc717cc95a3e759bb40559d66 100644 (file)
@@ -947,11 +947,11 @@ class HTTPConnection:
     def endheaders(self, message_body=None):
         """Indicate that the last header line has been sent to the server.
 
-        This method sends the request to the server.  The optional
-        message_body argument can be used to pass message body
-        associated with the request.  The message body will be sent in
-        the same packet as the message headers if possible.  The
-        message_body should be a string.
+        This method sends the request to the server.  The optional message_body
+        argument can be used to pass a message body associated with the
+        request.  The message body will be sent in the same packet as the
+        message headers if it is a string, otherwise it is sent as a separate
+        packet.
         """
         if self.__state == _CS_REQ_STARTED:
             self.__state = _CS_REQ_SENT