Replace "SVR.JS" in status page with reference to svrjs.json
This commit is contained in:
parent
695816b9d0
commit
b5ad179097
1 changed files with 6 additions and 1 deletions
|
@ -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, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">") +
|
||||
" status" +
|
||||
(req.headers.host == undefined
|
||||
? ""
|
||||
: " for " +
|
||||
|
|
Loading…
Reference in a new issue