diff --git a/tools/remote_caller.go b/tools/remote_caller.go index afabac7..73f2db9 100644 --- a/tools/remote_caller.go +++ b/tools/remote_caller.go @@ -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)