From d9e2837cb52c5a33292b6c90a075f98706d3dbfd Mon Sep 17 00:00:00 2001 From: Akkuman Date: Thu, 18 Aug 2022 10:12:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=8A=9B=E5=87=BAcopy?= =?UTF-8?q?buffer=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/util.go b/util.go index eaadc47..a18ed03 100644 --- a/util.go +++ b/util.go @@ -87,6 +87,7 @@ func CopyBufferWithCloseErr(dst io.Writer, src io.Reader, buf []byte) (written i // if er != io.EOF { // err = er // } + err = er break } }