fixing how last result in stored in httpcaller

This commit is contained in:
pb 2025-03-12 12:13:55 +01:00
parent 037ae74782
commit 9b3dfc7576

View File

@ -182,6 +182,7 @@ func (caller *HTTPCaller) CallForm(method string, url string, subpath string,
}
func (caller *HTTPCaller) StoreResp(resp *http.Response) error {
caller.LastResults = make(map[string]interface{})
caller.LastResults["header"] = resp.Header
caller.LastResults["code"] = resp.StatusCode
data, err := io.ReadAll(resp.Body)