mirror of
https://github.com/datarhei/core.git
synced 2025-10-20 14:45:27 +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)
|
grw.buffer.WriteTo(rw)
|
||||||
compressor.Reset(io.Discard)
|
compressor.Reset(io.Discard)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
compressor.Reset(io.Discard)
|
||||||
}
|
}
|
||||||
compressor.Close()
|
compressor.Close()
|
||||||
mem.Put(buffer)
|
mem.Put(buffer)
|
||||||
|
Reference in New Issue
Block a user