diff --git a/index.js b/index.js index fd64cbc..8ba874a 100644 --- a/index.js +++ b/index.js @@ -465,7 +465,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e try { res.writeHead(code, msg, bheaderso); - res.write(buffer.substr(headerendline + eol.length), "latin1"); + res.write(Buffer.from(buffer.substr(headerendline + eol.length), "latin1")); } catch (ex) { handler.removeAllListeners("exit"); handler.stdout.removeAllListeners("data"); diff --git a/mod.info b/mod.info index 299f4de..34c02da 100755 --- a/mod.info +++ b/mod.info @@ -1,4 +1,4 @@ { "name": "GreenRhombus FastCGI client for SVR.JS", - "version": "1.0.6" + "version": "1.0.7" }