frontend: fix logo fill on chrome (#893)

- on error, if reason is empty use the status text of the http status code

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
Bobby DeSimone 2020-06-13 13:55:01 -07:00 committed by GitHub
parent fb2930dcc5
commit 3fbcb8ff13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -68,6 +68,10 @@ func (a *Authorize) htmlDeniedResponse(code int32, reason string, headers map[st
details = reason
}
if reason == "" {
reason = http.StatusText(int(code))
}
var buf bytes.Buffer
err := a.templates.ExecuteTemplate(&buf, "error.html", map[string]interface{}{
"Status": code,

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 40 KiB

File diff suppressed because one or more lines are too long