This commit is contained in:
aozhiwei 2024-04-18 20:39:12 +08:00
parent c31eaf2c49
commit 380443c39e

View File

@ -192,8 +192,14 @@ func (this *httpCliMgr) internalSendRequest(
rsp := new(httpCliResponse) rsp := new(httpCliResponse)
rsp.init(data, err) rsp.init(data, err)
if rsp.GetErr() == nil && jsonRspObj != nil { if rsp.GetErr() == nil && jsonRspObj != nil {
if json.Unmarshal([]byte(rsp.GetRawData()), jsonRspObj) == nil { parseErr := json.Unmarshal([]byte(rsp.GetRawData()), jsonRspObj)
if parseErr == nil {
rsp.jsonParseOk = true rsp.jsonParseOk = true
} else {
GetSysLog().Warning("f5.httpclimgr.internalSendRequest json error:%s url:%s params:%s",
parseErr,
url,
q5.EncodeJson(&params))
} }
} }
if style == GO_STYLE_REQUEST { if style == GO_STYLE_REQUEST {