diff --git a/svr.js b/svr.js index 71c87d5..13cded1 100644 --- a/svr.js +++ b/svr.js @@ -4263,7 +4263,7 @@ if (!cluster.isPrimary) { var postfixPrefix = ""; wwwrootPostfixPrefixesVHost.every(function (currentPostfixPrefix) { if (req.url.indexOf(currentPostfixPrefix) == 0) { - if(currentPostfixPrefix.match(/\/+$/) postfixPrefix = currentPostfixPrefix.replace(/\/+$/,"")); + if (currentPostfixPrefix.match(/\/+$/)) postfixPrefix = currentPostfixPrefix.replace(/\/+$/,""); else postfixPrefix = currentPostfixPrefix; urlWithPostfix = urlWithPostFix.substr(postfixPrefix.length); return false;