Commit aca49b06 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Fix NameError exception ('name' undefined)

parent cbd6fb90
......@@ -771,6 +771,7 @@ class AbstractHTTPHandler(BaseHandler):
sel_host, sel_path = splithost(sel)
h.putheader('Host', sel_host or host)
for args in self.parent.addheaders:
name, value = args
if name not in req.headers:
h.putheader(*args)
for k, v in req.headers.items():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment