mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
[merge from 3.5] - Issue28010 - Make http.client.HTTPConnection.putrequest
documentation consistent with the code.
This commit is contained in:
commit
10427f4485
2 changed files with 11 additions and 16 deletions
|
@ -1068,7 +1068,8 @@ class HTTPConnection:
|
|||
# end chunked transfer
|
||||
self.send(b'0\r\n\r\n')
|
||||
|
||||
def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
|
||||
def putrequest(self, method, url, skip_host=False,
|
||||
skip_accept_encoding=False):
|
||||
"""Send a request to the server.
|
||||
|
||||
`method' specifies an HTTP request method, e.g. 'GET'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue