This commit is contained in:
gospider
2025-06-21 16:23:41 +08:00
parent 79aaa7b6e3
commit 48eac55e95
9 changed files with 50 additions and 25 deletions

View File

@@ -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()