return standardized text for ready and health endpoint (#3195)

This commit is contained in:
xieyanker
2019-08-26 18:31:24 +08:00
committed by Miek Gieben
parent dd8238ba9b
commit 9fe7fb95c6
4 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ func (rd *ready) onStartup() error {
ok, todo := plugins.Ready()
if ok {
w.WriteHeader(http.StatusOK)
io.WriteString(w, "OK")
io.WriteString(w, http.StatusText(http.StatusOK))
return
}
log.Infof("Still waiting on: %q", todo)