mirror of
https://github.com/labstack/echo.git
synced 2025-04-23 12:18:53 +02:00
Close gzip writer
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
c4caeb8ffb
commit
576dfeb71d
@ -53,6 +53,7 @@ func GzipFromConfig(config GzipConfig) echo.MiddlewareFunc {
|
|||||||
defer func() {
|
defer func() {
|
||||||
w.Close()
|
w.Close()
|
||||||
pool.Put(w)
|
pool.Put(w)
|
||||||
|
w.Close()
|
||||||
}()
|
}()
|
||||||
g := gzipResponseWriter{Response: c.Response(), Writer: w}
|
g := gzipResponseWriter{Response: c.Response(), Writer: w}
|
||||||
c.Response().Header().Set(echo.ContentEncoding, scheme)
|
c.Response().Header().Set(echo.ContentEncoding, scheme)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user