Просмотр исходного кода

Apply suggestions from code review

Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
Mariano Cano 2 лет назад
Родитель
Сommit
6e7a186bde
1 измененных файлов с 2 добавлено и 2 удалено
  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 {