Skip to content

Commit

Permalink
fix: close reader bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhaodong.516 committed Mar 17, 2023
1 parent 5fdfab1 commit 7d5b4f5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit 7d5b4f5

Please sign in to comment.