mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +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,
|
||||
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:
|
||||
|
Reference in New Issue
Block a user