mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
@@ -219,7 +219,7 @@ func (obj *Client) request(ctx *Response) (err error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ctx.Request().Body != nil {
|
||||
if ctx.Request() != nil && ctx.Request().Body != nil {
|
||||
ctx.Request().Body.Close()
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user