summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-11-06 15:40:05 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-11-06 15:40:05 (GMT)
commitaca49b065bbe7c27d47798bdb3cb059ef213fc16 (patch)
tree541214a06228d88ec9832e2ddfa50824098c8705 /Lib
parentcbd6fb90069ded106833efc42b1c93bcf9b958c3 (diff)
downloadcpython-aca49b065bbe7c27d47798bdb3cb059ef213fc16.zip
cpython-aca49b065bbe7c27d47798bdb3cb059ef213fc16.tar.gz
cpython-aca49b065bbe7c27d47798bdb3cb059ef213fc16.tar.bz2
Fix NameError exception ('name' undefined)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/urllib2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index f2e854a..f189b39 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -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():