mirror of
https://github.com/datarhei/core.git
synced 2025-10-18 22:04:38 +08:00
Fix resetting compressor on passthrough
This commit is contained in:
@@ -204,6 +204,8 @@ func NewWithConfig(config Config) echo.MiddlewareFunc {
|
||||
grw.buffer.WriteTo(rw)
|
||||
compressor.Reset(io.Discard)
|
||||
}
|
||||
} else {
|
||||
compressor.Reset(io.Discard)
|
||||
}
|
||||
compressor.Close()
|
||||
mem.Put(buffer)
|
||||
|
Reference in New Issue
Block a user