mirror of
https://github.com/plankanban/planka.git
synced 2025-12-19 01:12:02 +03:00
feat: Add custom user agent with base url to webhook (#799)
This commit is contained in:
@@ -89,6 +89,7 @@ const jsonifyData = (data) => {
|
|||||||
async function sendWebhook(webhook, event, data, user) {
|
async function sendWebhook(webhook, event, data, user) {
|
||||||
const headers = {
|
const headers = {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
'User-Agent': `planka (+${sails.config.custom.baseUrl})`,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (webhook.accessToken) {
|
if (webhook.accessToken) {
|
||||||
|
|||||||
Reference in New Issue
Block a user