Explorar o código

Add missing return in test.

Mariano Cano %!s(int64=4) %!d(string=hai) anos
pai
achega
2fbff47acf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      ca/bootstrap_test.go

+ 1 - 0
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