mirror of https://github.com/python/cpython
#3614: Correct a typo in xmlrpc.client.
This commit is contained in:
parent
84c43ab556
commit
41e36676cd
|
@ -1203,7 +1203,7 @@ class Transport:
|
||||||
headers = {}
|
headers = {}
|
||||||
if extra_headers:
|
if extra_headers:
|
||||||
for key, val in extra_headers:
|
for key, val in extra_headers:
|
||||||
header[key] = val
|
headers[key] = val
|
||||||
headers["Content-Type"] = "text/xml"
|
headers["Content-Type"] = "text/xml"
|
||||||
headers["User-Agent"] = self.user_agent
|
headers["User-Agent"] = self.user_agent
|
||||||
connection.request("POST", handler, request_body, headers)
|
connection.request("POST", handler, request_body, headers)
|
||||||
|
@ -1271,7 +1271,7 @@ class SafeTransport(Transport):
|
||||||
headers = {}
|
headers = {}
|
||||||
if extra_headers:
|
if extra_headers:
|
||||||
for key, val in extra_headers:
|
for key, val in extra_headers:
|
||||||
header[key] = val
|
headers[key] = val
|
||||||
headers["Content-Type"] = "text/xml"
|
headers["Content-Type"] = "text/xml"
|
||||||
headers["User-Agent"] = self.user_agent
|
headers["User-Agent"] = self.user_agent
|
||||||
connection.request("POST", handler, request_body, headers)
|
connection.request("POST", handler, request_body, headers)
|
||||||
|
|
|
@ -46,6 +46,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #3614: Corrected a typo in xmlrpc.client, leading to a NameError
|
||||||
|
"global name 'header' is not defined".
|
||||||
|
|
||||||
- Issue #2834: update the regular expression library to match the unicode
|
- Issue #2834: update the regular expression library to match the unicode
|
||||||
standards of py3k. In other words, mixing bytes and unicode strings
|
standards of py3k. In other words, mixing bytes and unicode strings
|
||||||
(be it as pattern, search string or replacement string) raises a TypeError.
|
(be it as pattern, search string or replacement string) raises a TypeError.
|
||||||
|
|
Loading…
Reference in New Issue