fix: use Header.Set

This commit is contained in:
Derrick Hammer 2024-02-11 06:20:18 -05:00
parent 8167255a0a
commit 12c71a26bf
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func (whm *WebhookManager) sendWebhooks(request interface{}, r *http.Request) {
payload := toNormalizedJson(payloadBytes) payload := toNormalizedJson(payloadBytes)
signature := generatePayloadSignature(payload, app.WebhookSecret) signature := generatePayloadSignature(payload, app.WebhookSecret)
req.Header.Add("X-Hub-Signature-256", signature) req.Header.Set("X-Hub-Signature-256", signature)
client := &http.Client{} client := &http.Client{}
resp, err := client.Do(req) resp, err := client.Do(req)