forked from svrjs/svrjs
Fix syntax error from previous commit.
This commit is contained in:
parent
5fdbc898d0
commit
e29d1aa3aa
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -4263,7 +4263,7 @@ if (!cluster.isPrimary) {
|
||||||
var postfixPrefix = "";
|
var postfixPrefix = "";
|
||||||
wwwrootPostfixPrefixesVHost.every(function (currentPostfixPrefix) {
|
wwwrootPostfixPrefixesVHost.every(function (currentPostfixPrefix) {
|
||||||
if (req.url.indexOf(currentPostfixPrefix) == 0) {
|
if (req.url.indexOf(currentPostfixPrefix) == 0) {
|
||||||
if(currentPostfixPrefix.match(/\/+$/) postfixPrefix = currentPostfixPrefix.replace(/\/+$/,""));
|
if (currentPostfixPrefix.match(/\/+$/)) postfixPrefix = currentPostfixPrefix.replace(/\/+$/,"");
|
||||||
else postfixPrefix = currentPostfixPrefix;
|
else postfixPrefix = currentPostfixPrefix;
|
||||||
urlWithPostfix = urlWithPostFix.substr(postfixPrefix.length);
|
urlWithPostfix = urlWithPostFix.substr(postfixPrefix.length);
|
||||||
return false;
|
return false;
|
||||||
|
|
Reference in a new issue