Use HTTPS PlatformIO API

This commit is contained in:
Ivan Kravets
2016-08-25 21:02:20 +03:00
parent 1e4ea2dde9
commit 012d33146c
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ __email__ = "me@ikravets.com"
__license__ = "Apache Software License"
__copyright__ = "Copyright 2014-present PlatformIO"
__apiurl__ = "http://api.platformio.org"
__apiurl__ = "https://api.platformio.org"
__apiip__ = "198.7.57.247"
if sys.version_info < (2, 7, 0) or sys.version_info >= (3, 0, 0):

View File

@ -352,7 +352,7 @@ def get_api_result(path, params=None, data=None, skipdns=False):
headers = get_request_defheaders()
url = __apiurl__
if skipdns:
url = "http://%s" % __apiip__
url = "https://%s" % __apiip__
headers['host'] = __apiurl__[__apiurl__.index("://") + 3:]
try: