From f42b5c078e65eee6139dae73e5f677bbb07be304 Mon Sep 17 00:00:00 2001 From: Thomas Labarussias Date: Wed, 28 Feb 2024 17:00:03 +0100 Subject: [PATCH] fix issue #780: duplicated headers Signed-off-by: Thomas Labarussias --- outputs/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/outputs/client.go b/outputs/client.go index 2992196bb..de6cc81d4 100644 --- a/outputs/client.go +++ b/outputs/client.go @@ -306,6 +306,7 @@ func (c *Client) sendRequest(method string, payload interface{}) error { resp, err := client.Do(req) if err != nil { + c.HeaderList = []Header{} log.Printf("[ERROR] : %v - %v\n", c.OutputType, err.Error()) go c.CountMetric("outputs", 1, []string{"output:" + strings.ToLower(c.OutputType), "status:connectionrefused"}) return err