Skip to content

Commit 1b0144b

Browse files
committed
Merge pull request #148 from johnboxall/patch-1
Pass `ProxyPrefix` into the error template.
2 parents 3ed828e + a653c3e commit 1b0144b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

oauthproxy.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -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
}

0 commit comments

Comments
 (0)