Always verify SSL connections.
Strangely enough, without verify=True we get: requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
This commit is contained in:
@@ -91,12 +91,14 @@ class Api(object):
|
||||
url, method,
|
||||
data=body,
|
||||
files=files,
|
||||
headers=http_headers)
|
||||
headers=http_headers,
|
||||
verify=True)
|
||||
else:
|
||||
http_headers['Content-Type'] = "application/json"
|
||||
return self.http_call(url, method,
|
||||
data=json.dumps(body),
|
||||
headers=http_headers)
|
||||
headers=http_headers,
|
||||
verify=True)
|
||||
|
||||
# Handle unauthorized token
|
||||
except exceptions.UnauthorizedAccess as error:
|
||||
|
||||
Reference in New Issue
Block a user