cpython: a7b7ba225de7 (original) (raw)
Mercurial > cpython
changeset 72693:a7b7ba225de7
merge from 3.2. Issue #13073 - Address the review comments made by Ezio. [#13073]
Senthil Kumaran senthil@uthcode.com | |
---|---|
date | Wed, 05 Oct 2011 23:27:37 +0800 |
parents | c2127d79f7c1(current diff)befa7b926aad(diff) |
children | a228e59ad693 |
files | Lib/http/client.py |
diffstat | 2 files changed, 9 insertions(+), 10 deletions(-)[+] [-] Doc/library/http.client.rst 9 Lib/http/client.py 10 |
line wrap: on
line diff
--- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -475,11 +475,10 @@ also send your request step by step, by .. 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)
--- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -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[](#l2.7)
message_body argument can be used to pass message body[](#l2.8)
associated with the request. The message body will be sent in[](#l2.9)
the same packet as the message headers if possible. The[](#l2.10)
message_body should be a string.[](#l2.11)
This method sends the request to the server. The optional message_body[](#l2.12)
argument can be used to pass a message body associated with the[](#l2.13)
request. The message body will be sent in the same packet as the[](#l2.14)
message headers if it is a string, otherwise it is sent as a separate[](#l2.15)
packet.[](#l2.16) """[](#l2.17) if self.__state == _CS_REQ_STARTED:[](#l2.18) self.__state = _CS_REQ_SENT[](#l2.19)