Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad87fa6

Browse files
committed
Issue #13073 - Address the review comments made by Ezio.
1 parent 035018d commit ad87fa6

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

Doc/library/http.client.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,10 @@ also send your request step by step, by using the four functions below.
475475
.. method:: HTTPConnection.endheaders(message_body=None)
476476

477477
Send a blank line to the server, signalling the end of the headers. The
478-
optional message_body argument can be used to pass message body
479-
associated with the request. The message body will be sent in
480-
the same packet as the message headers if possible. The
481-
message_body should be a string.
482-
478+
optional *message_body* argument can be used to pass a message body
479+
associated with the request. The message body will be sent in the same
480+
packet as the message headers if it is string, otherwise it is sent in a
481+
separate packet.
483482

484483
.. method:: HTTPConnection.send(data)
485484

Lib/http/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -947,11 +947,11 @@ def putheader(self, header, *values):
947947
def endheaders(self, message_body=None):
948948
"""Indicate that the last header line has been sent to the server.
949949
950-
This method sends the request to the server. The optional
951-
message_body argument can be used to pass message body
952-
associated with the request. The message body will be sent in
953-
the same packet as the message headers if possible. The
954-
message_body should be a string.
950+
This method sends the request to the server. The optional message_body
951+
argument can be used to pass a message body associated with the
952+
request. The message body will be sent in the same packet as the
953+
message headers if it is a string, otherwise it is sent as a separate
954+
packet.
955955
"""
956956
if self.__state == _CS_REQ_STARTED:
957957
self.__state = _CS_REQ_SENT

0 commit comments

Comments
 (0)