You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-21 00:29:44 +02:00
Integrate HealthCheck middleware
This commit is contained in:
@ -21,7 +21,6 @@ type responseLogger struct {
|
||||
size int
|
||||
upstream string
|
||||
authInfo string
|
||||
silent bool
|
||||
}
|
||||
|
||||
// Header returns the ResponseWriter's Header
|
||||
@ -105,7 +104,5 @@ func (h loggingHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||
url := *req.URL
|
||||
responseLogger := &responseLogger{w: w}
|
||||
h.handler.ServeHTTP(responseLogger, req)
|
||||
if !responseLogger.silent {
|
||||
logger.PrintReq(responseLogger.authInfo, responseLogger.upstream, req, url, t, responseLogger.Status(), responseLogger.Size())
|
||||
}
|
||||
logger.PrintReq(responseLogger.authInfo, responseLogger.upstream, req, url, t, responseLogger.Status(), responseLogger.Size())
|
||||
}
|
||||
|
Reference in New Issue
Block a user