Kaydet (Commit) c5d7e807 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix the way the Authorization header is sent (how could this have worked?).

üst c384d756
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment