Matthew Holt
3 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
2 additions and
2 deletions
-
modules/caddypki/adminapi.go
|
|
@ -138,7 +138,7 @@ func (a *adminAPI) handleCAInfo(w http.ResponseWriter, r *http.Request) error { |
|
|
|
} |
|
|
|
|
|
|
|
w.Header().Set("Content-Type", "application/json") |
|
|
|
w.Write(encoded) |
|
|
|
_, _ = w.Write(encoded) |
|
|
|
|
|
|
|
return nil |
|
|
|
} |
|
|
@ -171,7 +171,7 @@ func (a *adminAPI) handleCACerts(w http.ResponseWriter, r *http.Request) error { |
|
|
|
w.Header().Set("Content-Type", "application/pem-certificate-chain") |
|
|
|
_, err = w.Write(interCert) |
|
|
|
if err == nil { |
|
|
|
w.Write(rootCert) |
|
|
|
_, _ = w.Write(rootCert) |
|
|
|
} |
|
|
|
|
|
|
|
return nil |