mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Fix SSL SNI issue for Python < 2.7.9
This commit is contained in:
@ -477,14 +477,14 @@ def _get_api_result(
|
|||||||
data=data,
|
data=data,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
auth=auth,
|
auth=auth,
|
||||||
verify=disable_ssl_check)
|
verify=not disable_ssl_check)
|
||||||
else:
|
else:
|
||||||
r = _api_request_session().get(
|
r = _api_request_session().get(
|
||||||
url,
|
url,
|
||||||
params=params,
|
params=params,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
auth=auth,
|
auth=auth,
|
||||||
verify=disable_ssl_check)
|
verify=not disable_ssl_check)
|
||||||
result = r.json()
|
result = r.json()
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
except requests.exceptions.HTTPError as e:
|
except requests.exceptions.HTTPError as e:
|
||||||
|
Reference in New Issue
Block a user