summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 99bed8f..59b3274 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -200,7 +200,7 @@ class URLopener:
auth = None
h = httplib.HTTP(host)
h.putrequest('GET', selector)
- if auth: h.putheader('Authorization: Basic %s' % auth)
+ if auth: h.putheader('Authorization', 'Basic %s' % auth)
for args in self.addheaders: apply(h.putheader, args)
h.endheaders()
errcode, errmsg, headers = h.getreply()