Skip to content

Commit db2dd8f

Browse files
committed
Download indexes using https instead of http
1 parent b7728be commit db2dd8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arduino-core/src/cc/arduino/Constants.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class Constants {
7474
if (extenalPackageIndexUrl != null && !"".equals(extenalPackageIndexUrl)) {
7575
PACKAGE_INDEX_URL = extenalPackageIndexUrl;
7676
} else {
77-
PACKAGE_INDEX_URL = "http://downloads.arduino.cc/packages/package_index.json";
77+
PACKAGE_INDEX_URL = "https://downloads.arduino.cc/packages/package_index.json";
7878
}
7979

8080
String externalLibraryIndexUrl = System.getProperty("LIBRARY_INDEX_URL");
@@ -87,8 +87,8 @@ public class Constants {
8787
LIBRARY_INDEX_URL_GZ = "";
8888
}
8989
} else {
90-
LIBRARY_INDEX_URL = "http://downloads.arduino.cc/libraries/library_index.json";
91-
LIBRARY_INDEX_URL_GZ = "http://downloads.arduino.cc/libraries/library_index.json.gz";
90+
LIBRARY_INDEX_URL = "https://downloads.arduino.cc/libraries/library_index.json";
91+
LIBRARY_INDEX_URL_GZ = "https://downloads.arduino.cc/libraries/library_index.json.gz";
9292
}
9393
}
9494

0 commit comments

Comments
 (0)