mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-01 11:22:34 +02:00
support trailing slashes in gotify server url
This commit is contained in:
parent
ccf9d2ad5c
commit
b0d0ecd900
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ class Notification {
|
||||||
|
|
||||||
} else if (notification.type === "gotify") {
|
} else if (notification.type === "gotify") {
|
||||||
try {
|
try {
|
||||||
|
if (notification.gotifyserverurl.endsWith("/")) {
|
||||||
|
notification.gotifyserverurl = notification.gotifyserverurl.slice(0, -1);
|
||||||
|
}
|
||||||
await axios.post(`${notification.gotifyserverurl}/message?token=${notification.gotifyapplicationToken}`, {
|
await axios.post(`${notification.gotifyserverurl}/message?token=${notification.gotifyapplicationToken}`, {
|
||||||
"message": msg,
|
"message": msg,
|
||||||
"priority": 8,
|
"priority": 8,
|
||||||
|
|
Loading…
Add table
Reference in a new issue