Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/zimbra/simioj/endpoint/http.clj
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ POST <command> - 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)))


Expand Down