Update to RedBrick 2.5.5
This commit is contained in:
parent
f9f3c414bf
commit
554ffee615
2 changed files with 4 additions and 2 deletions
4
index.js
4
index.js
|
@ -251,6 +251,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
else msg = http.STATUS_CODES[code];
|
||||
}
|
||||
}
|
||||
var hasLocation = false;
|
||||
for (var i = 0; i < bheaders.length; i++) {
|
||||
var headerp = bheaders[i].match(/^([^:]*)(?:: (.*))?/);
|
||||
if (!headerp) headerp = [];
|
||||
|
@ -267,11 +268,12 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
if (!bheaderso["Set-Cookie"]) bheaderso["Set-Cookie"] = [];
|
||||
bheaderso["Set-Cookie"].push(headerv);
|
||||
} else {
|
||||
if (headern.toLowerCase() == "location") hasLocation = true;
|
||||
bheaderso[headern] = headerv;
|
||||
}
|
||||
}
|
||||
|
||||
if (code == 200 && (bheaderso["Location"] || bheaderso["location"])) {
|
||||
if ((code < 300 || code > 399) && hasLocation) {
|
||||
code = 302;
|
||||
msg = "Found";
|
||||
}
|
||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "RedBrick CGI engine for SVR.JS",
|
||||
"version": "2.5.4"
|
||||
"version": "2.5.5"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue