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