do not override custom webhook header
This commit is contained in:
@@ -39,7 +39,9 @@ module SendWebhookRequest
|
|||||||
data: data
|
data: data
|
||||||
}.to_json
|
}.to_json
|
||||||
|
|
||||||
|
if req.headers['X-Docuseal-Signature'].blank?
|
||||||
req.headers['X-Docuseal-Signature'] = WebhookUrls::Signatures.sign(webhook_url.hmac_secret, body: req.body)
|
req.headers['X-Docuseal-Signature'] = WebhookUrls::Signatures.sign(webhook_url.hmac_secret, body: req.body)
|
||||||
|
end
|
||||||
|
|
||||||
req.options.read_timeout = 15
|
req.options.read_timeout = 15
|
||||||
req.options.open_timeout = 8
|
req.options.open_timeout = 8
|
||||||
|
|||||||
Reference in New Issue
Block a user