From c3bafc5e2fb5e43d467e2823212d05f41aa7ddff Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Tue, 21 Feb 2023 07:02:58 -0500 Subject: [PATCH] By default, require that FHIR Base URLs use HTTPS (#122) * By default, require that FHIR B@ * This is a breaking change --- Project.toml | 2 +- src/types.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 1cb450f..33270b9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "FHIRClient" uuid = "b44d2ca2-8176-4fa9-8684-826e17b2a2da" authors = ["Dilum Aluthge", "Rhode Island Quality Institute", "contributors"] -version = "1.2.0" +version = "2.0.0" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" diff --git a/src/types.jl b/src/types.jl index 0924941..c76711e 100644 --- a/src/types.jl +++ b/src/types.jl @@ -38,7 +38,7 @@ struct BaseURL <: Any """ struct BaseURL uri::HTTP.URI - function BaseURL(uri::HTTP.URI; require_https::Bool = false) # TODO: change the default to `true` + function BaseURL(uri::HTTP.URI; require_https::Bool = true) this_uri_uses_https = _uses_https(uri) if !this_uri_uses_https msg = "The following FHIR Base URL does not use HTTPS: $(uri)"