mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Issue #13073 - Address the review comments made by Ezio.
This commit is contained in:
parent
035018d078
commit
ad87fa6719
2 changed files with 9 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue