From 5755b2e8d1e8c40e8bd7e4891630557c659f0999 Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Tue, 17 Dec 2024 16:09:11 +0530 Subject: [PATCH] Enhance proposal event notification by adding JSON content type header in webhook request (#879) --- src/services/utils/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/utils/utils.ts b/src/services/utils/utils.ts index 9c43b49e..a977aee5 100644 --- a/src/services/utils/utils.ts +++ b/src/services/utils/utils.ts @@ -260,6 +260,9 @@ export const sendProposalCreatedEvent = async ( const url = getEnv(EnvKey.REACT_APP_PROPOSAL_WEBHOOK_URL) const response = await fetch(url, { method: "POST", + headers: { + "Content-Type": "application/json" + }, body: JSON.stringify({ network, proposer: proposerAddress,