Fix SSL SNI issue for Python < 2.7.9

This commit is contained in:
Ivan Kravets
2017-06-14 19:41:36 +03:00
parent 8dde7e2efb
commit fddcc3c965

View File

@ -477,14 +477,14 @@ def _get_api_result(
data=data,
headers=headers,
auth=auth,
verify=disable_ssl_check)
verify=not disable_ssl_check)
else:
r = _api_request_session().get(
url,
params=params,
headers=headers,
auth=auth,
verify=disable_ssl_check)
verify=not disable_ssl_check)
result = r.json()
r.raise_for_status()
except requests.exceptions.HTTPError as e: