Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #148 from johnboxall/patch-1
Browse files Browse the repository at this point in the history
Pass `ProxyPrefix` into the error template.
  • Loading branch information
jehiah committed Oct 4, 2015
2 parents 3ed828e + a653c3e commit 1b0144b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,13 @@ func (p *OauthProxy) ErrorPage(rw http.ResponseWriter, code int, title string, m
log.Printf("ErrorPage %d %s %s", code, title, message)
rw.WriteHeader(code)
t := struct {
Title string
Message string
Title string
Message string
ProxyPrefix string
}{
Title: fmt.Sprintf("%d %s", code, title),
Message: message,
Title: fmt.Sprintf("%d %s", code, title),
Message: message,
ProxyPrefix: p.ProxyPrefix,
}
p.templates.ExecuteTemplate(rw, "error.html", t)
}
Expand Down

0 comments on commit 1b0144b

Please sign in to comment.