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