Use https for primary packages server (#1476)

* Use https for primary packages server

* Fix okToUsePackageServer
This commit is contained in:
dotasek 2023-11-01 09:37:41 -04:00 committed by GitHub
parent a47dccc7f6
commit 35504dc460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ public abstract class BasePackageCacheManager implements IPackageCacheManager {
// this is not a long term thing, but it's not clear how to release patches for
// 1.4.0
private boolean okToUsePackageServer(String server, String id) {
if ("http://packages.fhir.org".equals(server) && "hl7.fhir.r2b.core".equals(id)) {
if (PackageServer.PRIMARY_SERVER.equals(server) && "hl7.fhir.r2b.core".equals(id)) {
return false;
}
return true;

View File

@ -46,7 +46,7 @@ public class PackageServer {
return url;
}
public static final String PRIMARY_SERVER = "http://packages.fhir.org";
public static final String PRIMARY_SERVER = "https://packages.fhir.org";
public static final String SECONDARY_SERVER = "https://packages2.fhir.org/packages";
public static PackageServer primaryServer() {