Explorar o código

also return API version

Xiang Li %!s(int64=12) %!d(string=hai) anos
pai
achega
f490fba698
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      etcd_handlers.go

+ 1 - 0
etcd_handlers.go

@@ -237,6 +237,7 @@ func MachinesHttpHandler(w http.ResponseWriter, req *http.Request) {
 func VersionHttpHandler(w http.ResponseWriter, req *http.Request) {
 	w.WriteHeader(http.StatusOK)
 	w.Write([]byte(fmt.Sprintf("etcd %s", releaseVersion)))
+	w.Write([]byte(fmt.Sprintf("etcd API %s", version)))
 }
 
 // Handler to return the basic stats of etcd