mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #62 from philips/re-add-etcd-to-banner
fix(client_handlers): re-add etcd name to banner
This commit is contained in:
commit
c109da4b43
@ -4,6 +4,7 @@ import (
|
|||||||
"github.com/coreos/etcd/store"
|
"github.com/coreos/etcd/store"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -234,7 +235,7 @@ func MachinesHttpHandler(w http.ResponseWriter, req *http.Request) {
|
|||||||
// Handler to return the current version of etcd
|
// Handler to return the current version of etcd
|
||||||
func VersionHttpHandler(w http.ResponseWriter, req *http.Request) {
|
func VersionHttpHandler(w http.ResponseWriter, req *http.Request) {
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
w.Write([]byte(releaseVersion))
|
w.Write([]byte(fmt.Sprintf("etcd %s", releaseVersion)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handler to return the basic stats of etcd
|
// Handler to return the basic stats of etcd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user