1
0
Fork 0
forked from svrjs/svrjs

Fix modFunction

This commit is contained in:
Dorian Niemiec 2023-08-29 15:44:01 +02:00
parent 71d1970571
commit e490f8341b

4
svr.js
View file

@ -2821,7 +2821,7 @@ if (!cluster.isPrimary) {
proxyMods.reverse().forEach(function (proxyMod) { proxyMods.reverse().forEach(function (proxyMod) {
modFunction = proxyMod.proxyCallback(req, socket, head, configJSON, serverconsole, modFunction); modFunction = proxyMod.proxyCallback(req, socket, head, configJSON, serverconsole, modFunction);
}); });
modfunction (); modFunction();
} }
function vres(req, socket, head, serverconsole) { function vres(req, socket, head, serverconsole) {
@ -3442,7 +3442,7 @@ if (!cluster.isPrimary) {
for (var i = mods.length - 1; i >= 0; i--) { for (var i = mods.length - 1; i >= 0; i--) {
modFunction = mods[i].callback(req, res, serverconsole, responseEnd, href, ext, uobject, search, "index.html", users, page404, head, foot, fd, modFunction, configJSON, callServerError, getCustomHeaders, origHref, redirect, parsePostData); modFunction = mods[i].callback(req, res, serverconsole, responseEnd, href, ext, uobject, search, "index.html", users, page404, head, foot, fd, modFunction, configJSON, callServerError, getCustomHeaders, origHref, redirect, parsePostData);
} }
modfunction (); modFunction();
} }
var vresCalled = false; var vresCalled = false;