From 4b7e24a077796bab271bd04642abad6fd10fdff6 Mon Sep 17 00:00:00 2001 From: John Eastman Date: Mon, 26 Sep 2016 08:39:21 -0500 Subject: [PATCH] Fix for "null" in url from resource-id. --- src/zimbra/simioj/endpoint/http.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zimbra/simioj/endpoint/http.clj b/src/zimbra/simioj/endpoint/http.clj index 7750da0..3455bf1 100644 --- a/src/zimbra/simioj/endpoint/http.clj +++ b/src/zimbra/simioj/endpoint/http.clj @@ -101,7 +101,7 @@ POST - Post a command to the Raft ret {:status status :body (:state resp)} rpc (:rpc raft)] (if (contains? #{301 302} status) - (assoc ret :headers {"Location" (format "http://%s/state/%s/%s" (@(:servers rpc) (:server resp)) state-machine resource-id)}) + (assoc ret :headers {"Location" (format "http://%s/state/%s/%s" (@(:servers rpc) (:server resp)) state-machine (if (not resource-id) "" resource-id))}) ret)))