From b0d0ecd900e9dab57b9763b1bb679f81e8da01df Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Wed, 14 Jul 2021 11:11:58 +0200 Subject: [PATCH] support trailing slashes in gotify server url --- server/notification.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/notification.js b/server/notification.js index a321c324b..961768ac1 100644 --- a/server/notification.js +++ b/server/notification.js @@ -21,6 +21,9 @@ class Notification { } else if (notification.type === "gotify") { try { + if (notification.gotifyserverurl.endsWith("/")) { + notification.gotifyserverurl = notification.gotifyserverurl.slice(0, -1); + } await axios.post(`${notification.gotifyserverurl}/message?token=${notification.gotifyapplicationToken}`, { "message": msg, "priority": 8,