fix(client_handlers): re-add etcd name to banner

this was removed in the version shuffle.
release-0.4
Brandon Philips 2013-08-06 17:13:13 -07:00
parent 115dbdb927
commit 51ae55edff
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"github.com/coreos/etcd/store"
"net/http"
"strconv"
"fmt"
"time"
)
@ -234,7 +235,7 @@ func MachinesHttpHandler(w http.ResponseWriter, req *http.Request) {
// Handler to return the current version of etcd
func VersionHttpHandler(w http.ResponseWriter, req *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte(releaseVersion))
w.Write([]byte(fmt.Sprintf("etcd %s", releaseVersion)))
}
// Handler to return the basic stats of etcd