From 90fcb413ae81017c839996f033f3f147bf1f9a42 Mon Sep 17 00:00:00 2001 From: HannesOberreiter Date: Tue, 18 Jun 2024 14:14:14 +0200 Subject: [PATCH] feat: :sparkles: add custom user agent to webhook with base url --- 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 57da1bf..97144c9 100644 --- a/server/api/helpers/utils/send-webhooks.js +++ b/server/api/helpers/utils/send-webhooks.js @@ -34,6 +34,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) {