From 51ae55edffa0e6f652f8b8cdf65bc895599fed23 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Tue, 6 Aug 2013 17:13:13 -0700 Subject: [PATCH] fix(client_handlers): re-add etcd name to banner this was removed in the version shuffle. --- client_handlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client_handlers.go b/client_handlers.go index 025344bfd..494ee9c33 100644 --- a/client_handlers.go +++ b/client_handlers.go @@ -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