avoid writer indirects in templates

This commit is contained in:
Azareal 2020-04-30 13:04:52 +10:00
parent ab9dc20c3c
commit b915131ab4
1 changed files with 1 additions and 0 deletions

View File

@ -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