From fddcc3c965eeeb0fd86864f673561665b19702f6 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 14 Jun 2017 19:41:36 +0300 Subject: [PATCH] Fix SSL SNI issue for Python < 2.7.9 --- platformio/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio/util.py b/platformio/util.py index df5d6c94..ce763969 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -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: