Skip to content

Commit 576dfeb

Browse files
committed
Close gzip writer
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent c4caeb8 commit 576dfeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

middleware/compress.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func GzipFromConfig(config GzipConfig) echo.MiddlewareFunc {
5353
defer func() {
5454
w.Close()
5555
pool.Put(w)
56+
w.Close()
5657
}()
5758
g := gzipResponseWriter{Response: c.Response(), Writer: w}
5859
c.Response().Header().Set(echo.ContentEncoding, scheme)

0 commit comments

Comments
 (0)