diff options
Diffstat (limited to 'src/http.go')
-rw-r--r-- | src/http.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http.go b/src/http.go index 00078c9..362a2cd 100644 --- a/src/http.go +++ b/src/http.go @@ -61,8 +61,10 @@ func chain(xs ...middleware) middleware { func firstHandler(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - ctx := context.WithValue(r.Context(), "td", - &templateData{Debugp: Debugp}) + ctx := context.WithValue(r.Context(), "td", &templateData{ + Debugp: Debugp, + Printers: i18n.Printers, + }) next.ServeHTTP(w, r.WithContext(ctx)) }) } |