Skip to content

Commit

Permalink
By default, require that FHIR Base URLs use HTTPS (#122)
Browse files Browse the repository at this point in the history
* By default, require that FHIR B@

* This is a breaking change
  • Loading branch information
DilumAluthge authored Feb 21, 2023
1 parent 88dd618 commit c3bafc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

2 comments on commit c3bafc5

@DilumAluthge
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/78185

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.0.0 -m "<description of version>" c3bafc5e2fb5e43d467e2823212d05f41aa7ddff
git push origin v2.0.0

Please sign in to comment.