Procházet zdrojové kódy

Apply suggestions from code review

Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
Mariano Cano před 2 roky
rodič
revize
6e7a186bde
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      api/api.go

+ 2 - 2
api/api.go

@@ -482,12 +482,12 @@ func Intermediates(w http.ResponseWriter, r *http.Request) {
 		certs[i] = Certificate{intermediates[i]}
 	}
 
-	render.JSONStatus(w, r, &RootsResponse{
+	render.JSONStatus(w, r, &IntermediatesResponse{
 		Certificates: certs,
 	}, http.StatusCreated)
 }
 
-// RootsPEM returns all the root certificates for the CA in PEM format.
+// IntermediatesPEM returns all the intermediate certificates for the CA in PEM format.
 func IntermediatesPEM(w http.ResponseWriter, r *http.Request) {
 	intermediates := mustAuthority(r.Context()).GetIntermediateCertificates()
 	if len(intermediates) == 0 {