diff options
author | Nick Thomas <nick@gitlab.com> | 2017-07-05 18:05:29 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-07-05 18:05:29 +0300 |
commit | e5b7395e079ce2286d49981589f926c7e8410acb (patch) | |
tree | 5288977e9f951efdc9b08a6d61f07fe2c80ab496 /app.go | |
parent | 67c722e753e5490aebf27c16ce4305deec1372d1 (diff) |
Add disabled-by-default status check endpoint
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -58,6 +58,12 @@ func (a *theApp) serveContent(ww http.ResponseWriter, r *http.Request, https boo metrics.SessionsActive.Inc() defer metrics.SessionsActive.Dec() + // short circuit content serving to check for a status page + if r.RequestURI == a.appConfig.StatusPath { + w.Write([]byte("success")) + return + } + // Add auto redirect if !https && a.RedirectHTTP { u := *r.URL |