Add support for "\n\r"
This commit is contained in:
parent
5ac5f3c9b7
commit
1bef9ee09c
2 changed files with 3 additions and 3 deletions
4
index.js
4
index.js
|
@ -66,12 +66,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 OrangeCircle SCGI client for SVR.JS",
|
||||
"version": "1.0.3"
|
||||
"version": "1.0.4"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue