mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
@@ -281,13 +281,8 @@ func (obj *Response) ReadBody() (err error) {
|
||||
bar: bar.NewClient(obj.response.ContentLength),
|
||||
body: bBody,
|
||||
}, obj.response.Body)
|
||||
// err = tools.CopyWitchContext(obj.response.Request.Context(), &barBody{
|
||||
// bar: bar.NewClient(obj.response.ContentLength),
|
||||
// body: bBody,
|
||||
// }, obj.response.Body)
|
||||
} else {
|
||||
_, err = io.Copy(bBody, obj.response.Body)
|
||||
// err = tools.CopyWitchContext(obj.ctx, bBody, obj.response.Body)
|
||||
}
|
||||
if err != nil {
|
||||
obj.ForceCloseConn()
|
||||
|
||||
Reference in New Issue
Block a user