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

pull/804/head
HannesOberreiter 2 years ago committed by GitHub
parent de1ed3c784
commit 270ce29f87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save