From 018b57e880e438031331c755d3af7b4c33d1595d Mon Sep 17 00:00:00 2001 From: michel_929 Date: Sun, 10 Nov 2024 14:06:35 +0100 Subject: [PATCH] Update postrequest.js --- server/notification-providers/postrequest.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/notification-providers/postrequest.js b/server/notification-providers/postrequest.js index 47ae3599f..52601c939 100644 --- a/server/notification-providers/postrequest.js +++ b/server/notification-providers/postrequest.js @@ -4,12 +4,15 @@ const axios = require("axios"); class PostRequest extends NotificationProvider { name = "PostRequest"; + /** + * @inheritdoc + */ async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { const okMsg = "Sent Successfully."; const url = notification.postrequestURL; try { - let config = { + let config = { headers: { "Content-Type": "application/json", "Authorization": "Bearer " + notification.postrequestToken,