From 2495891fad8797eb0e3a98aa891421eada1862c8 Mon Sep 17 00:00:00 2001 From: HannesOberreiter Date: Tue, 18 Jun 2024 15:36:51 +0200 Subject: [PATCH] feat: Add custom user agent with base url to webhook (#799) --- server/api/helpers/utils/send-webhooks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api/helpers/utils/send-webhooks.js b/server/api/helpers/utils/send-webhooks.js index 04da1e6a..e5c709d1 100644 --- a/server/api/helpers/utils/send-webhooks.js +++ b/server/api/helpers/utils/send-webhooks.js @@ -89,6 +89,7 @@ const jsonifyData = (data) => { async function sendWebhook(webhook, event, data, user) { const headers = { 'Content-Type': 'application/json', + 'User-Agent': `planka (+${sails.config.custom.baseUrl})`, }; if (webhook.accessToken) {