git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #148 from johnboxall/patch-1

Pass `ProxyPrefix` into the error template.

commit1b0144ba759ec526f8b6bc89e78c764036d6484f authorJehiah Czebotar <jehiah@gmail.com> dateSat 3 Oct 2015, 20:06 (11 years ago) parent3ed828ea653c3e
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}