Skip to content

Commit

Permalink
root: fix health status code (goauthentik#12255)
Browse files Browse the repository at this point in the history
  • Loading branch information
rissson authored Dec 3, 2024
1 parent 0670bc8 commit 1623885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/web/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (ws *WebServer) configureProxy() {
rp.ErrorHandler = ws.proxyErrorHandler
rp.ModifyResponse = ws.proxyModifyResponse
ws.mainRouter.PathPrefix(config.Get().Web.Path).Path("/-/health/live/").HandlerFunc(sentry.SentryNoSample(func(rw http.ResponseWriter, r *http.Request) {
rw.WriteHeader(204)
rw.WriteHeader(200)
}))
ws.mainRouter.PathPrefix(config.Get().Web.Path).HandlerFunc(sentry.SentryNoSample(func(rw http.ResponseWriter, r *http.Request) {
if !ws.g.IsRunning() {
Expand Down

0 comments on commit 1623885

Please sign in to comment.