Restore /ping without hostname

This commit is contained in:
Michael Barrientos 2019-01-31 10:23:19 -08:00
parent ebc1453292
commit 4f605aa757
No known key found for this signature in database
GPG key ID: 2EDD44A511B38CCA

View file

@ -68,6 +68,11 @@ func main() {
topMux := http.NewServeMux()
if authenticateService != nil {
// Need to handle ping without host lookup for LB
topMux.HandleFunc("/ping", func(rw http.ResponseWriter, _ *http.Request) {
rw.WriteHeader(http.StatusOK)
fmt.Fprintf(rw, "OK")
})
topMux.Handle(authHost+"/", authenticateService.Handler())
}
if proxyService != nil {