From b915131ab45fd4cedbf97ba3d27bfefa9fa437c5 Mon Sep 17 00:00:00 2001 From: Azareal Date: Thu, 30 Apr 2020 13:04:52 +1000 Subject: [PATCH] avoid writer indirects in templates --- common/templates/templates.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/templates/templates.go b/common/templates/templates.go index 2884c343..3348ce40 100644 --- a/common/templates/templates.go +++ b/common/templates/templates.go @@ -526,6 +526,7 @@ if !ok { fout += `var iw http.ResponseWriter if gzw, ok := w.(c.GzipResponseWriter); ok { iw = gzw.ResponseWriter + w = gzw.Writer } _ = iw var tmp []byte