Skip to content

Commit

Permalink
Merge pull request #10 from morya/master
Browse files Browse the repository at this point in the history
headers in http plugin config not working
  • Loading branch information
reddec authored Jun 8, 2018
2 parents ebb53d1 + f3798db commit 8d34384
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/adp_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func (c *Http) renderAndSend(message string, params map[string]interface{}) {
return
}

for k, v := range c.Headers {
req.Header.Set(k,v)
}

ctx, closer := context.WithTimeout(context.Background(), c.Timeout)
defer closer()

Expand Down

0 comments on commit 8d34384

Please sign in to comment.