Skip to content

Commit

Permalink
fix: remove duplicated headers
Browse files Browse the repository at this point in the history
Signed-off-by: k0rventen <49311792+k0rventen@users.noreply.github.com>
  • Loading branch information
k0rventen committed Aug 27, 2024
1 parent 2568e1e commit df339a9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions outputs/webex.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package outputs
import (
"bytes"
"log"
"net/http"
"text/template"

"github.com/falcosecurity/falcosidekick/types"
Expand Down Expand Up @@ -53,10 +52,7 @@ func newWebexPayload(falcopayload types.FalcoPayload) webexPayload {
func (c *Client) WebexPost(falcopayload types.FalcoPayload) {
c.Stats.Webex.Add(Total, 1)

optfn := func(req *http.Request) {
req.Header.Set("Content-Type", "application/json")
}
err := c.Post(newWebexPayload(falcopayload), optfn)
err := c.Post(newWebexPayload(falcopayload))

if err != nil {
go c.CountMetric(Outputs, 1, []string{"output:webex", "status:error"})
Expand Down

0 comments on commit df339a9

Please sign in to comment.