mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Use HTTPS PlatformIO API
This commit is contained in:
@ -30,7 +30,7 @@ __email__ = "me@ikravets.com"
|
|||||||
__license__ = "Apache Software License"
|
__license__ = "Apache Software License"
|
||||||
__copyright__ = "Copyright 2014-present PlatformIO"
|
__copyright__ = "Copyright 2014-present PlatformIO"
|
||||||
|
|
||||||
__apiurl__ = "http://api.platformio.org"
|
__apiurl__ = "https://api.platformio.org"
|
||||||
__apiip__ = "198.7.57.247"
|
__apiip__ = "198.7.57.247"
|
||||||
|
|
||||||
if sys.version_info < (2, 7, 0) or sys.version_info >= (3, 0, 0):
|
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()
|
headers = get_request_defheaders()
|
||||||
url = __apiurl__
|
url = __apiurl__
|
||||||
if skipdns:
|
if skipdns:
|
||||||
url = "http://%s" % __apiip__
|
url = "https://%s" % __apiip__
|
||||||
headers['host'] = __apiurl__[__apiurl__.index("://") + 3:]
|
headers['host'] = __apiurl__[__apiurl__.index("://") + 3:]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user