Handle gzip encoding error

Fix #470
This commit is contained in:
Leonid Bugaev
2017-06-24 20:35:35 +02:00
parent 4fe95be416
commit aa4a878436
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -102,6 +102,9 @@ func CopyMulty(src io.Reader, writers ...io.Writer) (err error) {
if Settings.prettifyHTTP {
payload = prettifyHTTP(payload)
if len(payload) == 0 {
continue
}
}
if Settings.splitOutput {
+1
View File
@@ -52,6 +52,7 @@ func prettifyHTTP(p []byte) []byte {
if err != nil {
Debug("[Prettifier] GZIP encoding error:", err)
return []byte{}
}
content, _ = ioutil.ReadAll(g)