Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorIgor Wiedler <iwiedler@gitlab.com>2020-04-28 22:31:28 +0300
committerIgor Wiedler <iwiedler@gitlab.com>2020-04-28 22:31:28 +0300
commitd5ea3244bf7b8d86be20c30ec2693d9aee9017b9 (patch)
treec7b6429ef0d9f03694a6535980b3776882ad1832 /app.go
parentef580296e32c973655791371443175d1aa3c8f9d (diff)
add newline to /readiness success response
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index 22264eb8..ea25ba53 100644
--- a/app.go
+++ b/app.go
@@ -71,7 +71,7 @@ func (a *theApp) ServeTLS(ch *tls.ClientHelloInfo) (*tls.Certificate, error) {
func (a *theApp) healthCheck(w http.ResponseWriter, r *http.Request, https bool) {
if a.isReady() {
- w.Write([]byte("success"))
+ w.Write([]byte("success\n"))
} else {
http.Error(w, "not yet ready", http.StatusServiceUnavailable)
}