Set Content-Type / Retry-After for custom ARI resp

This commit is contained in:
Jacob Hoffman-Andrews 2025-06-06 13:27:20 -07:00
parent d52948ce25
commit dd99838087
1 changed files with 2 additions and 0 deletions

View File

@ -1917,6 +1917,8 @@ func (wfe *WebFrontEndImpl) RenewalInfo(_ context.Context, response http.Respons
}
if cert.ARIResponse != "" {
response.Header().Set("Retry-After", strconv.Itoa(int(6*time.Hour/time.Second)))
response.Header().Set("Content-Type", "application/json; charset=utf-8")
_, _ = response.Write([]byte(cert.ARIResponse))
return
}