Add support for "\n\r"
This commit is contained in:
parent
f5a4148ea9
commit
42f46c148a
2 changed files with 3 additions and 3 deletions
4
index.js
4
index.js
|
@ -154,12 +154,12 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
|||
var dataHandler = function (data) {
|
||||
buffer += data.toString("latin1");
|
||||
var m = null;
|
||||
if (!cned) m = buffer.match(/(?:\r\n\r\n|\n\n|\r\r)/);
|
||||
if (!cned) m = buffer.match(/(?:\r\n\r\n|\n\r\n\r|\n\n|\r\r)/);
|
||||
if (!cned && m) {
|
||||
cned = true;
|
||||
eol = m[0];
|
||||
headerendline = m.index;
|
||||
var bheaders = buffer.substr(0, headerendline).split(/(?:\r\n|\n|\r)/);
|
||||
var bheaders = buffer.substr(0, headerendline).split(/(?:\r\n|\n\r|\n|\r)/);
|
||||
var bheaderso = {};
|
||||
if (dh) bheaderso = dh;
|
||||
var code = 200;
|
||||
|
|
2
mod.info
2
mod.info
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"name": "DorianTech RedBrick CGI engine for SVR.JS",
|
||||
"version": "2.3.4"
|
||||
"version": "2.3.5"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue