It's not really mine

This commit is contained in:
timothy-spencer 2019-03-26 08:59:03 -07:00
parent 2679579f44
commit 6bb32c8059
No known key found for this signature in database
GPG Key ID: B9DC267D2CB410CD

View File

@ -141,14 +141,14 @@ func main() {
rand.Seed(time.Now().UnixNano())
var myhandler http.Handler
var handler http.Handler
if opts.GCPHealthChecks {
myhandler = gcpHealthcheck(LoggingHandler(os.Stdout, oauthproxy, opts.RequestLogging, opts.RequestLoggingFormat))
handler = gcpHealthcheck(LoggingHandler(os.Stdout, oauthproxy, opts.RequestLogging, opts.RequestLoggingFormat))
} else {
myhandler = LoggingHandler(os.Stdout, oauthproxy, opts.RequestLogging, opts.RequestLoggingFormat)
handler = LoggingHandler(os.Stdout, oauthproxy, opts.RequestLogging, opts.RequestLoggingFormat)
}
s := &Server{
Handler: myhandler,
Handler: handler,
Opts: opts,
}
s.ListenAndServe()