From e490f8341b7d0295427db8a0ff550bf25d835e0a Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 29 Aug 2023 15:44:01 +0200 Subject: [PATCH] Fix modFunction --- svr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svr.js b/svr.js index 66beec8..a94c994 100644 --- a/svr.js +++ b/svr.js @@ -2821,7 +2821,7 @@ if (!cluster.isPrimary) { proxyMods.reverse().forEach(function (proxyMod) { modFunction = proxyMod.proxyCallback(req, socket, head, configJSON, serverconsole, modFunction); }); - modfunction (); + modFunction(); } function vres(req, socket, head, serverconsole) { @@ -3442,7 +3442,7 @@ if (!cluster.isPrimary) { 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 (); + modFunction(); } var vresCalled = false;