Skip to content

Commit

Permalink
updates and add tester
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-carlton committed Oct 18, 2024
1 parent efda3ab commit e2f6b2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/httpclient/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -242,6 +242,9 @@ func (r *reqResp) getRespBody() error {
}

strData := string(data)
if strData == "null" {
strData = ""
}
r.respText = &strData

return nil
Expand Down

0 comments on commit e2f6b2b

Please sign in to comment.