diff --git a/pkg/httpclient/http_client.go b/pkg/httpclient/http_client.go index 9516f42..9f2df9c 100644 --- a/pkg/httpclient/http_client.go +++ b/pkg/httpclient/http_client.go @@ -79,7 +79,7 @@ type ReqResp interface { getRespBody() error CloseBody() RespBody() *string - ResponseCode() int + RespCode() int } func NewReqResp(ctx context.Context, url *url.URL, method *string, body interface{}, header Header, @@ -242,6 +242,9 @@ func (r *reqResp) getRespBody() error { } strData := string(data) + if strData == "null" { + strData = "" + } r.respText = &strData return nil