From 576dfeb71d257a11e14bf637073b8c64576d2628 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Sat, 19 Mar 2016 16:17:43 -0700 Subject: [PATCH] Close gzip writer Signed-off-by: Vishal Rana --- middleware/compress.go | 1 + 1 file changed, 1 insertion(+) diff --git a/middleware/compress.go b/middleware/compress.go index 40a43577..93735fe9 100644 --- a/middleware/compress.go +++ b/middleware/compress.go @@ -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)