mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
#3614: Correct a typo in xmlrpc.client.
This commit is contained in:
parent
84c43ab556
commit
41e36676cd
2 changed files with 5 additions and 2 deletions
|
@ -1203,7 +1203,7 @@ class Transport:
|
|||
headers = {}
|
||||
if extra_headers:
|
||||
for key, val in extra_headers:
|
||||
header[key] = val
|
||||
headers[key] = val
|
||||
headers["Content-Type"] = "text/xml"
|
||||
headers["User-Agent"] = self.user_agent
|
||||
connection.request("POST", handler, request_body, headers)
|
||||
|
@ -1271,7 +1271,7 @@ class SafeTransport(Transport):
|
|||
headers = {}
|
||||
if extra_headers:
|
||||
for key, val in extra_headers:
|
||||
header[key] = val
|
||||
headers[key] = val
|
||||
headers["Content-Type"] = "text/xml"
|
||||
headers["User-Agent"] = self.user_agent
|
||||
connection.request("POST", handler, request_body, headers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue