From 9b3dfc7576ddf574b0f1cf4e7b03814674b2f0b2 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 12 Mar 2025 12:13:55 +0100 Subject: [PATCH] fixing how last result in stored in httpcaller --- tools/remote_caller.go | 1 + 1 file changed, 1 insertion(+) 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)