git.iko.soy/typeable/oauth2-proxy
on master help sign in
Pass `ProxyPrefix` into the error template.

The default `error.html` uses `ProxyPrefix` but it isn't supplied in the context, causing it to error.

commita653c3eeeb44a7e09915ea64ddb87cb33fdc3a44 authorJohn Boxall <john@mobify.com> dateSat 3 Oct 2015, 15:59 (11 years ago) parent3ed828e
1 file changed+6−4
oauthproxy.go+6−4
oauthproxy.go+6−4
@@ -287,11 +287,13 @@ func (p *OauthProxy) ErrorPage(rw http.ResponseWriter, code int, title string, m
287287 log.Printf("ErrorPage %d %s %s", code, title, message)
288288 rw.WriteHeader(code)
289289 t := struct {
290− Title string
291− Message string
290+ Title string
291+ Message string
292+ ProxyPrefix string
292293 }{
293− Title: fmt.Sprintf("%d %s", code, title),
294− Message: message,
294+ Title: fmt.Sprintf("%d %s", code, title),
295+ Message: message,
296+ ProxyPrefix: p.ProxyPrefix,
295297 }
296298 p.templates.ExecuteTemplate(rw, "error.html", t)
297299}