diff options
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r-- | Lib/urllib2.py | 1 |
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(): |