Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

bugfix for broken HTDOCS

allo6430fa520e02
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.java
index a281c1abb..1e59ef301 100644
--- a/source/de/anomic/http/httpdFileHandler.java
+++ b/source/de/anomic/http/httpdFileHandler.java
@@ -428,12 +428,6 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
}
}
- if (!(targetFile.exists())) {
- // try to find that file in the htDocsPath
- File trialFile = new File(htDocsPath, path);
- if (trialFile.exists()) targetFile = trialFile;
- }
-
File targetClass = rewriteClassFile(targetFile);
Date targetDate;
@@ -488,6 +482,12 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
path.endsWith("pac")) {
targetFile = getLocalizedFile(path);
+ if (!(targetFile.exists())) {
+ // try to find that file in the htDocsPath
+ File trialFile = new File(htDocsPath, path);
+ if (trialFile.exists()) targetFile = trialFile;
+ }
+
// call rewrite-class
serverObjects tp = new serverObjects();