mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
Update to 6.0.1 - use the response recorder whenever you need it. Read HISTORY.md
This commit is contained in:
4
webfs.go
4
webfs.go
@@ -131,12 +131,12 @@ func (w *webfs) Build() HandlerFunc {
|
||||
}
|
||||
|
||||
w.handler = func(ctx *Context) {
|
||||
writer := ctx.ResponseWriter.ResponseWriter
|
||||
writer := ctx.ResponseWriter
|
||||
|
||||
if w.gzip && ctx.clientAllowsGzip() {
|
||||
ctx.ResponseWriter.Header().Add(varyHeader, acceptEncodingHeader)
|
||||
ctx.SetHeader(contentEncodingHeader, "gzip")
|
||||
gzipResWriter := acquireGzipResponseWriter(ctx.ResponseWriter.ResponseWriter)
|
||||
gzipResWriter := acquireGzipResponseWriter(ctx.ResponseWriter) //.ResponseWriter)
|
||||
writer = gzipResWriter
|
||||
defer releaseGzipResponseWriter(gzipResWriter)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user