fixing how last result in stored in httpcaller
This commit is contained in:
parent
037ae74782
commit
9b3dfc7576
@ -182,6 +182,7 @@ func (caller *HTTPCaller) CallForm(method string, url string, subpath string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (caller *HTTPCaller) StoreResp(resp *http.Response) error {
|
func (caller *HTTPCaller) StoreResp(resp *http.Response) error {
|
||||||
|
caller.LastResults = make(map[string]interface{})
|
||||||
caller.LastResults["header"] = resp.Header
|
caller.LastResults["header"] = resp.Header
|
||||||
caller.LastResults["code"] = resp.StatusCode
|
caller.LastResults["code"] = resp.StatusCode
|
||||||
data, err := io.ReadAll(resp.Body)
|
data, err := io.ReadAll(resp.Body)
|
||||||
|
Loading…
Reference in New Issue
Block a user