Fix swapped FastCGI responses

This commit is contained in:
Dorian Niemiec 2024-04-24 18:02:15 +02:00
parent 27eafbbe2e
commit 3b3a29009b

View file

@ -491,7 +491,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
env: env env: env
}; };
handler = createFastCGIHandler(options); var handler = createFastCGIHandler(options);
handler.on("error", function (error) { handler.on("error", function (error) {
var errorcode = 0; var errorcode = 0;
if (error.code == "ENOTFOUND" || error.code == "EHOSTUNREACH" || error.code == "ECONNREFUSED") { if (error.code == "ENOTFOUND" || error.code == "EHOSTUNREACH" || error.code == "ECONNREFUSED") {