@@ -34,7 +34,7 @@ function _token_endpoint_wellknown(config::BackendServicesConfig)
34
34
# In principle, it should be possible to omit the header
35
35
# (and servers may ignore it anyway)
36
36
# Ref: https://www.hl7.org/fhir/smart-app-launch/conformance.html#using-well-known
37
- headers = ( " Accept" => " application/json" ,) ,
37
+ headers = [ " Accept" => " application/json" ] ,
38
38
# Old servers might still only support the /metadata endpoint (even though its use for SMART capabilities is deprecated)
39
39
# Hence we do not throw an exception if the request fails but try the /metadata endpoint first
40
40
# Ref: https://hl7.org/fhir/smart-app-launch/1.0.0/conformance/index.html#declaring-support-for-oauth2-endpoints
@@ -66,7 +66,7 @@ function _token_endpoint_metadata(config::BackendServicesConfig)
66
66
joinpath (config. base_url, " metadata" );
67
67
# We only support FHIR version R4
68
68
# Ref: https://hl7.org/fhir/R4/versioning.html#mt-version
69
- headers = ( " Accept" => " application/fhir+json; fhirVersion=4.0" ) ,
69
+ headers = [ " Accept" => " application/fhir+json; fhirVersion=4.0" ] ,
70
70
# We throw our own, hopefully more descriptive, exception if necessary
71
71
status_exception = false ,
72
72
)
@@ -141,7 +141,7 @@ function backend_services(config::BackendServicesConfig)
141
141
_response = HTTP. request (
142
142
" POST" ,
143
143
token_endpoint;
144
- headers = ( " Content-Type" => " application/x-www-form-urlencoded" ,) ,
144
+ headers = [ " Content-Type" => " application/x-www-form-urlencoded" ] ,
145
145
body = URIs. escapeuri (body_params),
146
146
)
147
147
0 commit comments