Fix NameError exception ('name' undefined)

This commit is contained in:
Andrew M. Kuchling 2002-11-06 15:40:05 +00:00
parent cbd6fb9006
commit aca49b065b
1 changed files with 1 additions and 0 deletions

View File

@ -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():