Merge pull request #148 from johnboxall/patch-1
Pass `ProxyPrefix` into the error template.
This commit is contained in:
commit
1b0144ba75
@ -289,9 +289,11 @@ func (p *OauthProxy) ErrorPage(rw http.ResponseWriter, code int, title string, m
|
|||||||
t := struct {
|
t := struct {
|
||||||
Title string
|
Title string
|
||||||
Message string
|
Message string
|
||||||
|
ProxyPrefix string
|
||||||
}{
|
}{
|
||||||
Title: fmt.Sprintf("%d %s", code, title),
|
Title: fmt.Sprintf("%d %s", code, title),
|
||||||
Message: message,
|
Message: message,
|
||||||
|
ProxyPrefix: p.ProxyPrefix,
|
||||||
}
|
}
|
||||||
p.templates.ExecuteTemplate(rw, "error.html", t)
|
p.templates.ExecuteTemplate(rw, "error.html", t)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user