mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
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:
parent
fb2930dcc5
commit
3fbcb8ff13
3 changed files with 7 additions and 4 deletions
|
@ -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
Loading…
Add table
Reference in a new issue