Browse Source

also return API version

Xiang Li 12 years ago
parent
commit
f490fba698
1 changed files with 1 additions and 0 deletions
  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