From c2e6afbd69c42312c0f63bdcc1181d6b879783c0 Mon Sep 17 00:00:00 2001 From: theli Date: Fri, 23 Mar 2007 05:37:19 +0000 Subject: [PATCH] *) bugfix: setting mimeType properly for dir listing with e.g. "?format=xml" git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3516 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpdFileHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.java index 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 dirlisting if(targetFile == null || !targetFile.exists()){ String dirlistFormat = (args==null)?"html":args.get("format","html"); + targetExt = dirlistFormat; // this is needed to set the mime type correctly targetFile = getOverlayedFile("/htdocsdefault/dir." + dirlistFormat); targetClass=getOverlayedClass("/htdocsdefault/dir." + dirlistFormat); if(! (( targetFile != null && targetFile.exists()) && ( targetClass != null && targetClass.exists())) ){