sfe: Fix broken unpause form (#8075)
Fix incorrect struct member name cause broken unpause form caused by https://github.com/letsencrypt/boulder/pull/8066. Add the `text/html` Content-Type header to all rendered templates.
This commit is contained in:
parent
b491abb051
commit
d3669ebde9
|
@ -9,7 +9,7 @@
|
||||||
following:
|
following:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range $identifier := .Identifiers }}<li>{{ $identifier}}</li>{{ end }}
|
{{ range $identifier := .Idents }}<li>{{ $identifier}}</li>{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
These identifiers were paused after consistently failing validation
|
These identifiers were paused after consistently failing validation
|
||||||
|
|
|
@ -124,6 +124,7 @@ func (sfe *SelfServiceFrontEndImpl) renderTemplate(w http.ResponseWriter, filena
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
err := sfe.templatePages.ExecuteTemplate(w, filename, dynamicData)
|
err := sfe.templatePages.ExecuteTemplate(w, filename, dynamicData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
|
@ -169,6 +170,8 @@ func (sfe *SelfServiceFrontEndImpl) UnpauseForm(response http.ResponseWriter, re
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If any of these values change, ensure any relevant pages in //sfe/pages/
|
||||||
|
// are also updated.
|
||||||
type tmplData struct {
|
type tmplData struct {
|
||||||
PostPath string
|
PostPath string
|
||||||
JWT string
|
JWT string
|
||||||
|
|
Loading…
Reference in New Issue