Replace "SVR.JS" in status page with reference to svrjs.json

This commit is contained in:
Dorian Niemiec 2024-08-25 09:47:36 +02:00
parent 695816b9d0
commit b5ad179097

View file

@ -82,7 +82,12 @@ module.exports = (req, res, logFacilities, config, next) => {
});
res.end(
(res.head == ""
? "<!DOCTYPE html><html><head><title>SVR.JS status" +
? "<!DOCTYPE html><html><head><title>" +
name
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;") +
" status" +
(req.headers.host == undefined
? ""
: " for " +