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)))