Make it work under Windows
This commit is contained in:
parent
42f46c148a
commit
6168470048
2 changed files with 2 additions and 3 deletions
3
index.js
3
index.js
|
@ -77,7 +77,6 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
"Server": "RedBrick/" + version
|
||||
});
|
||||
res.end("<html><head></head><body><h1>RedBrick Error!</h1><p>Reason: " + err.message + "</p></body></html>");
|
||||
|
||||
} else {
|
||||
callServerError(500, "RedBrick/" + version, err);
|
||||
}
|
||||
|
@ -110,7 +109,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
res.end("<html><head></head><body><h1>RedBrick Error!</h1><p>Reason: " + ex.message + "</p></body></html>");
|
||||
return;
|
||||
}
|
||||
args.push(fname);
|
||||
args.push(__dirname + "/../../../temp/" + tempID);
|
||||
filename = args.shift();
|
||||
} else {
|
||||
filename = (process.cwd() + (os.platform() == "win32" ? "\\" + fname.replace(/\//g, "\\") : "/" + fname)).replace(os.platform() == "win32" ? /\\+/ : /\/+/, os.platform() == "win32" ? "\\" : "/");
|
||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "DorianTech RedBrick CGI engine for SVR.JS",
|
||||
"version": "2.3.5"
|
||||
"version": "2.3.6"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue