From 7d5b4f558246da558d3eeff094d9ae600fb81213 Mon Sep 17 00:00:00 2001 From: "fanhaodong.516" Date: Fri, 17 Mar 2023 11:45:30 +0800 Subject: [PATCH] fix: close reader bug --- http.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/http.go b/http.go index aaa5ff4ecd..c1c8017a01 100644 --- a/http.go +++ b/http.go @@ -328,9 +328,6 @@ func newCloseReader(r io.Reader, closeFunc func() error) io.ReadCloser { if r == nil { panic(`BUG: reader is nil`) } - if rv, isOk := r.(io.ReadCloser); isOk { - return rv - } return &closeReader{Reader: r, closeFunc: closeFunc} }