1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00

feat: Add custom user agent with base url to webhook (#799)

This commit is contained in:
HannesOberreiter 2024-06-18 15:36:51 +02:00 committed by GitHub
parent de1ed3c784
commit 270ce29f87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {