diff --git a/go/raft/http_client.go b/go/raft/http_client.go index dc65ed18a..c7ea49e0b 100644 --- a/go/raft/http_client.go +++ b/go/raft/http_client.go @@ -54,7 +54,8 @@ func HttpGetLeader(path string) (response []byte, err error) { } leaderAPI := leaderURI if config.Config.URLPrefix != "" { - leaderAPI = fmt.Sprintf("%s/%s", leaderAPI, config.Config.URLPrefix) + // We know URLPrefix begind with "/" + leaderAPI = fmt.Sprintf("%s%s", leaderAPI, config.Config.URLPrefix) } leaderAPI = fmt.Sprintf("%s/api", leaderAPI)