mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix NameError exception ('name' undefined)
This commit is contained in:
parent
cbd6fb9006
commit
aca49b065b
1 changed files with 1 additions and 0 deletions
|
@ -771,6 +771,7 @@ class AbstractHTTPHandler(BaseHandler):
|
||||||
sel_host, sel_path = splithost(sel)
|
sel_host, sel_path = splithost(sel)
|
||||||
h.putheader('Host', sel_host or host)
|
h.putheader('Host', sel_host or host)
|
||||||
for args in self.parent.addheaders:
|
for args in self.parent.addheaders:
|
||||||
|
name, value = args
|
||||||
if name not in req.headers:
|
if name not in req.headers:
|
||||||
h.putheader(*args)
|
h.putheader(*args)
|
||||||
for k, v in req.headers.items():
|
for k, v in req.headers.items():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue