diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-12-15 14:59:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 14:59:57 +0800 |
commit | 4da1d9781025aa4a85899b1ddeb25aabbaa82703 (patch) | |
tree | 9714f71f2fb042e44d418fbcfc56cd8440a1bbb1 /routers/private/manager_unix.go | |
parent | 9d943bf374e56e4d403303a6a2caafc1c79cdb6f (diff) | |
download | gitea-4da1d9781025aa4a85899b1ddeb25aabbaa82703.tar.gz gitea-4da1d9781025aa4a85899b1ddeb25aabbaa82703.zip |
Refactor HTTP request context (#17979)
Diffstat (limited to 'routers/private/manager_unix.go')
-rw-r--r-- | routers/private/manager_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/private/manager_unix.go b/routers/private/manager_unix.go index 1738c06a05..f00f202207 100644 --- a/routers/private/manager_unix.go +++ b/routers/private/manager_unix.go @@ -17,12 +17,12 @@ import ( // Restart causes the server to perform a graceful restart func Restart(ctx *context.PrivateContext) { graceful.GetManager().DoGracefulRestart() - ctx.PlainText(http.StatusOK, []byte("success")) + ctx.PlainText(http.StatusOK, "success") } // Shutdown causes the server to perform a graceful shutdown func Shutdown(ctx *context.PrivateContext) { graceful.GetManager().DoGracefulShutdown() - ctx.PlainText(http.StatusOK, []byte("success")) + ctx.PlainText(http.StatusOK, "success") } |