This commit is contained in:
baddlan 2016-02-23 21:13:09 +00:00
commit c8b3fce796

View File

@ -407,6 +407,7 @@ if __name__ == "__main__":
# Attempt to reach the endpoint
try:
req = urllib2.Request(url)
req.add_header('Content-Type', 'application/json')
if args.auth:
base64str = base64.encodestring(args.auth).replace('\n', '')
req.add_header('Authorization', 'Basic %s' % base64str)