Update to RedBrick 2.5.1
This commit is contained in:
parent
0294279efb
commit
088f56b01d
2 changed files with 14 additions and 7 deletions
19
index.js
19
index.js
|
@ -28,6 +28,8 @@ try {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var disableModExposeSupported = process.versions.svrjs && process.versions.svrjs.match(/^(?:Nightly-|(?:[4-9]|[123][0-9])[0-9]*\.|3\.(?:[1-9][0-9]+\.|9\.(?:[1-9])|4\.(?:(?:[3-9]|[12][0-9])[0-9]+|29)))/i);
|
||||||
|
|
||||||
function Mod() {}
|
function Mod() {}
|
||||||
|
|
||||||
Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, ext, uobject, search, defaultpage, users, page404, head, foot, fd, elseCallback, configJSON, callServerError, getCustomHeaders, origHref, redirect, parsePostData) {
|
Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, ext, uobject, search, defaultpage, users, page404, head, foot, fd, elseCallback, configJSON, callServerError, getCustomHeaders, origHref, redirect, parsePostData) {
|
||||||
|
@ -379,8 +381,9 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
||||||
req.socket.localPort,
|
req.socket.localPort,
|
||||||
getCustomHeaders ?
|
getCustomHeaders ?
|
||||||
getCustomHeaders()["Server"] +
|
getCustomHeaders()["Server"] +
|
||||||
|
(disableModExposeSupported && (configJSON.exposeModsInErrorPages || configJSON.exposeModsInErrorPages === undefined) ?
|
||||||
" RedBrick/" +
|
" RedBrick/" +
|
||||||
version :
|
version : "") :
|
||||||
"SVR.JS/" +
|
"SVR.JS/" +
|
||||||
configJSON.version +
|
configJSON.version +
|
||||||
" (" +
|
" (" +
|
||||||
|
@ -429,8 +432,9 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
||||||
req.socket.localPort,
|
req.socket.localPort,
|
||||||
getCustomHeaders ?
|
getCustomHeaders ?
|
||||||
getCustomHeaders()["Server"] +
|
getCustomHeaders()["Server"] +
|
||||||
|
(disableModExposeSupported && (configJSON.exposeModsInErrorPages || configJSON.exposeModsInErrorPages === undefined) ?
|
||||||
" RedBrick/" +
|
" RedBrick/" +
|
||||||
version :
|
version : "") :
|
||||||
"SVR.JS/" +
|
"SVR.JS/" +
|
||||||
configJSON.version +
|
configJSON.version +
|
||||||
" (" +
|
" (" +
|
||||||
|
@ -487,8 +491,9 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
||||||
req.socket.localPort,
|
req.socket.localPort,
|
||||||
getCustomHeaders ?
|
getCustomHeaders ?
|
||||||
getCustomHeaders()["Server"] +
|
getCustomHeaders()["Server"] +
|
||||||
|
(disableModExposeSupported && (configJSON.exposeModsInErrorPages || configJSON.exposeModsInErrorPages === undefined) ?
|
||||||
" RedBrick/" +
|
" RedBrick/" +
|
||||||
version :
|
version : "") :
|
||||||
"SVR.JS/" +
|
"SVR.JS/" +
|
||||||
configJSON.version +
|
configJSON.version +
|
||||||
" (" +
|
" (" +
|
||||||
|
@ -543,8 +548,9 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
||||||
req.socket.localPort,
|
req.socket.localPort,
|
||||||
getCustomHeaders ?
|
getCustomHeaders ?
|
||||||
getCustomHeaders()["Server"] +
|
getCustomHeaders()["Server"] +
|
||||||
|
(disableModExposeSupported && (configJSON.exposeModsInErrorPages || configJSON.exposeModsInErrorPages === undefined) ?
|
||||||
" RedBrick/" +
|
" RedBrick/" +
|
||||||
version :
|
version : "") :
|
||||||
"SVR.JS/" +
|
"SVR.JS/" +
|
||||||
configJSON.version +
|
configJSON.version +
|
||||||
" (" +
|
" (" +
|
||||||
|
@ -623,8 +629,9 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
||||||
req.socket.localPort,
|
req.socket.localPort,
|
||||||
getCustomHeaders ?
|
getCustomHeaders ?
|
||||||
getCustomHeaders()["Server"] +
|
getCustomHeaders()["Server"] +
|
||||||
|
(disableModExposeSupported && (configJSON.exposeModsInErrorPages || configJSON.exposeModsInErrorPages === undefined) ?
|
||||||
" RedBrick/" +
|
" RedBrick/" +
|
||||||
version :
|
version : "") :
|
||||||
"SVR.JS/" +
|
"SVR.JS/" +
|
||||||
configJSON.version +
|
configJSON.version +
|
||||||
" (" +
|
" (" +
|
||||||
|
@ -665,7 +672,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (err && err.code == "ENOENT") {
|
} else {
|
||||||
elseCallback(); //Invoke default error handler
|
elseCallback(); //Invoke default error handler
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"name": "DorianTech RedBrick CGI engine for SVR.JS",
|
"name": "DorianTech RedBrick CGI engine for SVR.JS",
|
||||||
"version": "2.5.0"
|
"version": "2.5.1"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue