Add support for "\n\r"

This commit is contained in:
Dorian Niemiec 2023-08-26 04:35:07 +02:00
parent 5ac5f3c9b7
commit 1bef9ee09c
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -1,4 +1,4 @@
{
"name": "DorianTech OrangeCircle SCGI client for SVR.JS",
"version": "1.0.3"
"version": "1.0.4"
}