fix: we need to encode the new version, not the original
This commit is contained in:
parent
865c639557
commit
8167255a0a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue