mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Fix middleware when used with prettyfier and gzip encoding
If while decompressing gzip payload decompressed value was less then compressed, it did not changed buffer length, and middleware received bytes left from gzip response.
This commit is contained in:
@@ -71,6 +71,7 @@ func (m *Middleware) copy(to io.Writer, from io.Reader) {
|
||||
|
||||
if Settings.prettifyHTTP {
|
||||
payload = prettifyHTTP(payload)
|
||||
nr = len(payload)
|
||||
}
|
||||
|
||||
hex.Encode(dst, payload)
|
||||
|
||||
Reference in New Issue
Block a user