Improve message when Lifecycle API is not enabled

Signed-off-by: Sven Nebel <nebel.sven@gmail.com>
This commit is contained in:
Sven Nebel 2019-09-25 10:50:39 +01:00
parent d186d85649
commit 27bbc235e0

View file

@ -346,7 +346,7 @@ func New(logger log.Logger, o *Options) *Handler {
} else {
forbiddenAPINotEnabled := func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusForbidden)
w.Write([]byte("Lifecycle APIs are not enabled"))
w.Write([]byte("Lifecycle API is not enabled."))
}
router.Post("/-/quit", forbiddenAPINotEnabled)
router.Put("/-/quit", forbiddenAPINotEnabled)