diff --git a/server/uptime-kuma-server.js b/server/uptime-kuma-server.js index a47b5b51f..0b9ab47e4 100644 --- a/server/uptime-kuma-server.js +++ b/server/uptime-kuma-server.js @@ -416,8 +416,12 @@ class UptimeKumaServer { } } + /** + * Default User-Agent when making HTTP requests + * @returns {string} User-Agent + */ getUserAgent() { - return "Uptime-Kuma/" + require("../package.json").version + return "Uptime-Kuma/" + require("../package.json").version; } }