Fix NodeHttp initialization
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 12 May 2016 18:31:38 +0000 (18:31 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 12 May 2016 18:31:38 +0000 (18:31 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@8913 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.cms/src/org/argeo/cms/internal/kernel/NodeHttp.java

index 201f765ca6ec78e6d38be35ce13af3901fab0304..eee6dcd51228073556365bdbfe30ae719a4ba412 100644 (file)
@@ -76,7 +76,7 @@ class NodeHttp implements KernelConstants, ArgeoJcrConstants {
                                throws ServletException, IOException {
                        String path = request.getPathInfo();
                        String userAgent = request.getHeader("User-Agent").toLowerCase();
-                       boolean isBot = true;
+                       boolean isBot = false;
                        boolean isCompatibleBrowser = false;
                        if (userAgent.contains("bot") || userAgent.contains("facebook") || userAgent.contains("twitter")) {
                                isBot = true;