mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
@@ -201,6 +201,9 @@ func (obj *Client) Request(ctx context.Context, method string, href string, opti
|
||||
}
|
||||
func (obj *Client) request(ctx *Response) (err error) {
|
||||
defer func() {
|
||||
if ctx.filePath != "" {
|
||||
return
|
||||
}
|
||||
//read body
|
||||
if err == nil && ctx.sse == nil && !ctx.option.Stream {
|
||||
err = ctx.ReadBody()
|
||||
|
||||
Reference in New Issue
Block a user