From ec682fbe0a16a840ca30e24f9aa8f62c65515f64 Mon Sep 17 00:00:00 2001 From: zuiwuchang Date: Wed, 25 Aug 2021 10:29:47 +0800 Subject: [PATCH] Rest set writer.err=nil --- writer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/writer.go b/writer.go index 63676b4..39feaef 100644 --- a/writer.go +++ b/writer.go @@ -61,6 +61,7 @@ func (w *Writer) Reset(dst io.Writer) { w.params.lgwin = uint(w.options.LGWin) } w.dst = dst + w.err = nil } func (w *Writer) writeChunk(p []byte, op int) (n int, err error) {