mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Use HTTPS PlatformIO API
This commit is contained in:
@ -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):
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user