mirror of
https://github.com/plankanban/planka.git
synced 2026-03-01 11:21:46 +03:00
[PR #799] [MERGED] feat: ✨ add custom user agent to webhook with base url #1105
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plankanban/planka/pull/799
Author: @HannesOberreiter
Created: 6/18/2024
Status: ✅ Merged
Merged: 6/18/2024
Merged by: @meltyshev
Base:
master← Head:webhook-custom-user-agent📝 Commits (1)
90fcb41feat: ✨ add custom user agent to webhook with base url📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
server/api/helpers/utils/send-webhooks.js(+1 -0)📄 Description
This update adds a default
user-agentto the header, which includes the base URL. This enhancement allows for differentiating multiple instances on the webhook and creating links to events without hardcoding any base URLs.Prior to this change, the default user-agent of node-fetch was "node".
Cheers,
Hannes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.