Skip to content

Commit 6e7a186

Browse files
marainohslatman
andauthored
Apply suggestions from code review
Co-authored-by: Herman Slatman <[email protected]>
1 parent d3acbe9 commit 6e7a186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,12 +482,12 @@ func Intermediates(w http.ResponseWriter, r *http.Request) {
482482
certs[i] = Certificate{intermediates[i]}
483483
}
484484

485-
render.JSONStatus(w, r, &RootsResponse{
485+
render.JSONStatus(w, r, &IntermediatesResponse{
486486
Certificates: certs,
487487
}, http.StatusCreated)
488488
}
489489

490-
// RootsPEM returns all the root certificates for the CA in PEM format.
490+
// IntermediatesPEM returns all the intermediate certificates for the CA in PEM format.
491491
func IntermediatesPEM(w http.ResponseWriter, r *http.Request) {
492492
intermediates := mustAuthority(r.Context()).GetIntermediateCertificates()
493493
if len(intermediates) == 0 {

0 commit comments

Comments
 (0)