From a7891f89f83f2303411a4ceb02e20a5ac55d6bcf Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Mon, 11 May 2026 17:02:19 +0300 Subject: [PATCH] do not override custom webhook header --- lib/send_webhook_request.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/send_webhook_request.rb b/lib/send_webhook_request.rb index 2eb346e9..5bae9bf3 100644 --- a/lib/send_webhook_request.rb +++ b/lib/send_webhook_request.rb @@ -39,7 +39,9 @@ module SendWebhookRequest data: data }.to_json - req.headers['X-Docuseal-Signature'] = WebhookUrls::Signatures.sign(webhook_url.hmac_secret, body: req.body) + if req.headers['X-Docuseal-Signature'].blank? + req.headers['X-Docuseal-Signature'] = WebhookUrls::Signatures.sign(webhook_url.hmac_secret, body: req.body) + end req.options.read_timeout = 15 req.options.open_timeout = 8