(w http.ResponseWriter, err error)
| 294 | } |
| 295 | |
| 296 | func (a OAuthAuthenticator) writeErrorPage(w http.ResponseWriter, err error) { |
| 297 | w.Header().Set("Content-Type", "text/html") |
| 298 | _, _ = w.Write([]byte(err.Error())) |
| 299 | } |
| 300 | |
| 301 | func (a OAuthAuthenticator) writeHtmlPage(w http.ResponseWriter, html string) { |
| 302 | w.Header().Set("Content-Type", "text/html") |