forked from platformio/platformio-core
Use HTTPS PlatformIO API
This commit is contained in:
1 parent
1e4ea2dde9
commit
012d33146c
2 files changed
+2
-2
No files matched your search
@@ -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):
|
||||
|
||||
+1
-1
@@ -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