From 12c71a26bfef5e01bec1e5c2d214fcbefc5dc3c6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 06:20:18 -0500 Subject: [PATCH] fix: use Header.Set --- api/webhook_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/webhook_manager.go b/api/webhook_manager.go index d36ba43..3a43eb6 100644 --- a/api/webhook_manager.go +++ b/api/webhook_manager.go @@ -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)