Update to OrangeCircle 1.1.1
This commit is contained in:
parent
4867f4e092
commit
d223d9547a
2 changed files with 4 additions and 4 deletions
6
index.js
6
index.js
|
@ -204,8 +204,8 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
nEnv["SERVER_NAME"] = req.headers.host;
|
||||
nEnv["DOCUMENT_ROOT"] = process.cwd();
|
||||
nEnv["SCRIPT_NAME"] = scgiConf.path;
|
||||
nEnv["PATH_INFO"] = decodeURI(b);
|
||||
nEnv["PATH_TRANSLATED"] = b ? decodeURI((process.cwd() + (require("os").platform == "win32" ? b.replace(/\//g, "\\") : b)).replace((require("os").platform == "win32" ? /\\\\/g : /\/\//g), (require("os").platform == "win32" ? "\\" : "/"))) : "";
|
||||
nEnv["PATH_INFO"] = decodeURIComponent(b);
|
||||
nEnv["PATH_TRANSLATED"] = b ? ((process.cwd() + decodeURIComponent(require("os").platform == "win32" ? b.replace(/\//g, "\\") : b)).replace((require("os").platform == "win32" ? /\\\\/g : /\/\//g), (require("os").platform == "win32" ? "\\" : "/"))) : "";
|
||||
nEnv["REQUEST_METHOD"] = req.method;
|
||||
nEnv["SCGI"] = "1";
|
||||
nEnv["REQUEST_URI"] = (!origHref || origHref == href) ? req.url : (origHref + (uobject.search ? ("?" + uobject.search) : ""));
|
||||
|
@ -232,7 +232,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
if (href == scgiConf.path || href.indexOf(scgiConf.path + "/") == 0) {
|
||||
try {
|
||||
executeSCGIWithEnv(
|
||||
href,
|
||||
decodeURIComponent(href),
|
||||
req,
|
||||
res,
|
||||
req.socket.localAddress,
|
||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "OrangeCircle SCGI client for SVR.JS",
|
||||
"version": "1.1.0"
|
||||
"version": "1.1.1"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue