一些优化

This commit is contained in:
Yun
2024-03-23 13:11:15 +08:00
parent 7254a9c8fb
commit 83e815bd1f
3 changed files with 22 additions and 1 deletions
+3 -1
View File
@@ -182,7 +182,9 @@ func (c *Curlx) SendWithResponee(ctx context.Context, ps ...Param) Response {
if n == 0 {
break
}
body = append(body, buf...)
// 读取n个字节
body = append(body, buf[:n]...)
// body = append(body, buf...)
}
default:
body, _ = io.ReadAll(resp.Body)