diff --git a/src/clj_hl7_fhir/core.clj b/src/clj_hl7_fhir/core.clj index ed15e4b..c6da069 100644 --- a/src/clj_hl7_fhir/core.clj +++ b/src/clj_hl7_fhir/core.clj @@ -56,7 +56,7 @@ http-req-params (merge (if (:insecure? *options*) {:insecure? true}) (select-keys *options* [:basic-auth :digest-auth :oauth-token]) - (:headers *options*))] + (if (map? (:headers *options*)) {:headers (:headers *options*)}))] (try (let [response (case type :get (http-get-json url http-req-params)