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