diff --git a/index.js b/index.js index 146e4f7..3dc1abb 100644 --- a/index.js +++ b/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; diff --git a/mod.info b/mod.info index d460e8d..335d6c5 100755 --- a/mod.info +++ b/mod.info @@ -1,4 +1,4 @@ { "name": "DorianTech OrangeCircle SCGI client for SVR.JS", - "version": "1.0.3" + "version": "1.0.4" }