diff --git a/main.go b/main.go index 0ed3408..699ec97 100644 --- a/main.go +++ b/main.go @@ -101,7 +101,7 @@ func wrapper(fn func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc { func HealthCheckHandler(w http.ResponseWriter, r *http.Request) { setStrHeader(w, "Content-Type", "text/plain") - io.WriteString(w, "WORKING\n") + io.WriteString(w, "OK\n") } func proxy(w http.ResponseWriter, r *http.Request) { @@ -157,7 +157,7 @@ func main() { } r := mux.NewRouter() - r.HandleFunc("/healthcheck{_dummy:/?}", wrapper(HealthCheckHandler)).Methods("GET", "HEAD") + r.HandleFunc("/_health}", wrapper(HealthCheckHandler)).Methods("GET", "HEAD") r.HandleFunc("/{bucket:[0-9a-zA-Z-_.]+}/{object:.*}", wrapper(proxy)).Methods("GET", "HEAD") log.Printf("[service] listening on %s", *bind)