mirror of
https://github.com/labstack/echo.git
synced 2025-11-29 22:48:07 +02:00
@@ -53,6 +53,7 @@ func GzipFromConfig(config GzipConfig) echo.MiddlewareFunc {
|
||||
defer func() {
|
||||
w.Close()
|
||||
pool.Put(w)
|
||||
w.Close()
|
||||
}()
|
||||
g := gzipResponseWriter{Response: c.Response(), Writer: w}
|
||||
c.Response().Header().Set(echo.ContentEncoding, scheme)
|
||||
|
||||
Reference in New Issue
Block a user