From 380443c39edace66279a0ea21f9f7c80f6ec1fd4 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 18 Apr 2024 20:39:12 +0800 Subject: [PATCH] 1 --- httpclimgr.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/httpclimgr.go b/httpclimgr.go index 94a8292..b33377e 100644 --- a/httpclimgr.go +++ b/httpclimgr.go @@ -192,8 +192,14 @@ func (this *httpCliMgr) internalSendRequest( rsp := new(httpCliResponse) rsp.init(data, err) 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 + } else { + GetSysLog().Warning("f5.httpclimgr.internalSendRequest json error:%s url:%s params:%s", + parseErr, + url, + q5.EncodeJson(¶ms)) } } if style == GO_STYLE_REQUEST {