mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 20:14:20 +01:00
Fix 3a78300971
.
This commit is contained in:
parent
3a78300971
commit
85eb0b4b0d
@ -116,6 +116,7 @@ def getUrlFd(url, headers=None, data=None):
|
|||||||
auth, url = url.split('@')
|
auth, url = url.split('@')
|
||||||
url = scheme + '://' + url
|
url = scheme + '://' + url
|
||||||
request = urllib2.Request(url, headers=headers, data=data)
|
request = urllib2.Request(url, headers=headers, data=data)
|
||||||
|
if 'auth' in locals():
|
||||||
request.add_header('Authorization',
|
request.add_header('Authorization',
|
||||||
'Basic ' + base64.b64encode(auth))
|
'Basic ' + base64.b64encode(auth))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user