(w http.ResponseWriter)
| 141 | } |
| 142 | |
| 143 | func renderSuccess(w http.ResponseWriter) { |
| 144 | w.Header().Set("Content-Type", "text/html; charset=utf-8") |
| 145 | if err := successTemplate.Execute(w, nil); err != nil { |
| 146 | http.Error(w, "internal error", http.StatusInternalServerError) |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | // renderError shows the failure page. html/template auto-escapes msg, so a |
| 151 | // hostile error_description cannot inject markup. |