fix: use Header.Set
This commit is contained in:
parent
8167255a0a
commit
12c71a26bf
|
@ -67,7 +67,7 @@ func (whm *WebhookManager) sendWebhooks(request interface{}, r *http.Request) {
|
|||
payload := toNormalizedJson(payloadBytes)
|
||||
|
||||
signature := generatePayloadSignature(payload, app.WebhookSecret)
|
||||
req.Header.Add("X-Hub-Signature-256", signature)
|
||||
req.Header.Set("X-Hub-Signature-256", signature)
|
||||
|
||||
client := &http.Client{}
|
||||
resp, err := client.Do(req)
|
||||
|
|
Loading…
Reference in New Issue