From 2fbff47acfeda882e07438e1d0800e6cf565b6ed Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 11 Apr 2022 12:18:44 -0700 Subject: [PATCH] Add missing return in test. --- ca/bootstrap_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ca/bootstrap_test.go b/ca/bootstrap_test.go index 2332b4d4..9aaa5f1f 100644 --- a/ca/bootstrap_test.go +++ b/ca/bootstrap_test.go @@ -92,6 +92,7 @@ func mTLSMiddleware(next http.Handler, nonAuthenticatedPaths ...string) http.Han for _, s := range nonAuthenticatedPaths { if strings.HasPrefix(r.URL.Path, s) || strings.HasPrefix(r.URL.Path, "/1.0"+s) { next.ServeHTTP(w, r) + return } } isMTLS := r.TLS != nil && len(r.TLS.PeerCertificates) > 0