This commit is contained in:
gospider
2025-01-15 16:50:16 +08:00
parent 9562a203fa
commit 80bf1af6d3
3 changed files with 17 additions and 11 deletions

View File

@@ -10,7 +10,6 @@ import (
"net/url"
"strconv"
"strings"
"time"
"net/http"
@@ -355,14 +354,6 @@ func (obj *Response) ReadBody() (err error) {
err = obj.ctx.Err()
case <-done:
}
if obj.option.Logger != nil {
obj.option.Logger(Log{
Id: obj.requestId,
Time: time.Now(),
Type: LogType_ResponseBody,
Msg: "response body",
})
}
if err != nil {
obj.ForceCloseConn()
return errors.New("response read content error: " + err.Error())