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)