[merge from 3.5] - Issue28010 - Make http.client.HTTPConnection.putrequest

documentation consistent with the code.
This commit is contained in:
Senthil Kumaran 2016-09-08 14:29:23 -07:00
commit 10427f4485
2 changed files with 11 additions and 16 deletions

View file

@ -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'.