Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) bugfix: setting mimeType properly for dir listing with e.g. "?format=xml"
thelic2e6afbd69c4
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.javaindex 8707bef0e..d6e385524 100644--- a/source/de/anomic/http/httpdFileHandler.java+++ b/source/de/anomic/http/httpdFileHandler.java@@ -466,6 +466,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http//no defaultfile, send a dirlistingif(targetFile == null || !targetFile.exists()){String dirlistFormat = (args==null)?"html":args.get("format","html");+ targetExt = dirlistFormat; // this is needed to set the mime type correctlytargetFile = getOverlayedFile("/htdocsdefault/dir." + dirlistFormat);targetClass=getOverlayedClass("/htdocsdefault/dir." + dirlistFormat);if(! (( targetFile != null && targetFile.exists()) && ( targetClass != null && targetClass.exists())) ){