From b5ad179097352c91107969e7a00afeb51f76b1a2 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 25 Aug 2024 09:47:36 +0200 Subject: [PATCH] Replace "SVR.JS" in status page with reference to svrjs.json --- src/middleware/status.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/middleware/status.js b/src/middleware/status.js index 0e4c5ff..d275e0f 100644 --- a/src/middleware/status.js +++ b/src/middleware/status.js @@ -82,7 +82,12 @@ module.exports = (req, res, logFacilities, config, next) => { }); res.end( (res.head == "" - ? "SVR.JS status" + + ? "<!DOCTYPE html><html><head><title>" + + name + .replace(/&/g, "&") + .replace(/</g, "<") + .replace(/>/g, ">") + + " status" + (req.headers.host == undefined ? "" : " for " +