Skip to content

Commit

Permalink
fix issue #780: duplicated headers
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Labarussias <[email protected]>
  • Loading branch information
Issif committed Feb 28, 2024
1 parent 8264020 commit 141984e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions outputs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 141984e

Please sign in to comment.