api.go: update comment on auth pass-through

This commit is contained in:
Hector Sanjuan 2023-05-11 12:11:57 +02:00 committed by GitHub
parent 287f285d79
commit 50015947da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,8 +300,8 @@ func (api *API) authHandler(h http.Handler, lggr *logging.ZapEventLogger) http.H
}
wrap := func(w http.ResponseWriter, r *http.Request) {
// We let CORS preflight requests pass through the next
// handler.
// We let CORS preflight and Health requests pass through to
// the next handler.
if r.Method == http.MethodOptions || (r.Method == http.MethodGet && r.URL.Path == "/health") {
h.ServeHTTP(w, r)
return