From 33772f2fbcf083ea5fcb401ba4c4923497884d33 Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 7 Oct 2014 13:31:03 -0400 Subject: [PATCH] fix http headers not being correctly added --- src/clj_hl7_fhir/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)