]> granicus.if.org Git - python/commitdiff
Issue13073 - Address review comments and add versionchanged information in the docs.
authorSenthil Kumaran <senthil@uthcode.com>
Wed, 5 Oct 2011 15:52:49 +0000 (23:52 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Wed, 5 Oct 2011 15:52:49 +0000 (23:52 +0800)
Doc/library/httplib.rst
Lib/httplib.py

index 68a014960b06f0682e5cb33bcc39d3625c6c8d17..fc26f2428117f41352cb329ac964048be13091a0 100644 (file)
@@ -494,11 +494,14 @@ 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.
+   Send a blank line to the server, signalling the end of the headers. 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 string, otherwise it is sent in a
+   separate packet.
+
+   .. versionchanged:: 2.7
+      *message_body* was added.
 
 
 .. method:: HTTPConnection.send(data)
index ccd42349e48470417ad2a4bc45a344a728672e79..9853285a2a840e83ecad1cba39cef43375576674 100644 (file)
@@ -939,10 +939,10 @@ class HTTPConnection:
         """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
+        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.
+        the same packet as the message headers if it is string, otherwise it is
+        sent as a separate packet.
         """
         if self.__state == _CS_REQ_STARTED:
             self.__state = _CS_REQ_SENT