From 8167255a0ae712feb1f471aa2313b6d1cba10070 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 05:38:36 -0500 Subject: [PATCH] fix: we need to encode the new version, not the original --- api/webhook_manager.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/webhook_manager.go b/api/webhook_manager.go index b2ec197..d36ba43 100644 --- a/api/webhook_manager.go +++ b/api/webhook_manager.go @@ -64,8 +64,7 @@ func (whm *WebhookManager) sendWebhooks(request interface{}, r *http.Request) { } } - payload := getWebhookData(r, whm.logger) - payload = toNormalizedJson(payload) + payload := toNormalizedJson(payloadBytes) signature := generatePayloadSignature(payload, app.WebhookSecret) req.Header.Add("X-Hub-Signature-256", signature)