From 50015947da28460c58f697edf876029ab28e114c Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Thu, 11 May 2023 12:11:57 +0200 Subject: [PATCH] api.go: update comment on auth pass-through --- api/common/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/common/api.go b/api/common/api.go index 7b9509d2..a543fc88 100644 --- a/api/common/api.go +++ b/api/common/api.go @@ -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