Fix extra write header.

pull/166/head^2
Mariano Cano 5 years ago committed by max furman
parent 85d3843968
commit 4f08a7816f

@ -71,8 +71,7 @@ func (h *caHandler) SSHRekey(w http.ResponseWriter, r *http.Request) {
return
}
w.WriteHeader(http.StatusCreated)
JSON(w, &SSHSignResponse{
JSONStatus(w, &SSHSignResponse{
Certificate: SSHCertificate{newCert},
})
}, http.StatusCreated)
}

@ -61,8 +61,7 @@ func (h *caHandler) SSHRenew(w http.ResponseWriter, r *http.Request) {
return
}
w.WriteHeader(http.StatusCreated)
JSON(w, &SSHSignResponse{
JSONStatus(w, &SSHSignResponse{
Certificate: SSHCertificate{newCert},
})
}, http.StatusCreated)
}

Loading…
Cancel
Save