avoid writer indirects in templates
This commit is contained in:
parent
ab9dc20c3c
commit
b915131ab4
|
@ -526,6 +526,7 @@ if !ok {
|
||||||
fout += `var iw http.ResponseWriter
|
fout += `var iw http.ResponseWriter
|
||||||
if gzw, ok := w.(c.GzipResponseWriter); ok {
|
if gzw, ok := w.(c.GzipResponseWriter); ok {
|
||||||
iw = gzw.ResponseWriter
|
iw = gzw.ResponseWriter
|
||||||
|
w = gzw.Writer
|
||||||
}
|
}
|
||||||
_ = iw
|
_ = iw
|
||||||
var tmp []byte
|
var tmp []byte
|
||||||
|
|
Loading…
Reference in New Issue