diff --git a/lib/server/commander.js b/lib/server/commander.js index 0ec48551..fc597b41 100644 --- a/lib/server/commander.js +++ b/lib/server/commander.js @@ -382,8 +382,8 @@ if(pReq){ lPath = getPath(pReq); - lNoJS = Util.isContainStr(lPath, CloudFunc.NoJS) - || lPath === '/' || getQuery() !== 'json'; + lNoJS = Util.isContainStr(lPath, NO_JS) + || lPath === '/' || getQuery() == 'json'; } return lNoJS;