diff --git a/Lib/urllib.py b/Lib/urllib.py index 99bed8f1cd77..59b3274886f5 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -200,7 +200,7 @@ def open_http(self, url): 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()