Skip to content

Commit

Permalink
Close gzip writer
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Mar 19, 2016
1 parent c4caeb8 commit 576dfeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middleware/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 576dfeb

Please sign in to comment.