Skip to content

Commit

Permalink
*) bugfix: setting mimeType properly for dir listing with e.g. "?form…
Browse files Browse the repository at this point in the history
…at=xml"

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3516 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Mar 23, 2007
1 parent 242c19b commit c2e6afb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/de/anomic/http/httpdFileHandler.java
Expand Up @@ -466,6 +466,7 @@ public void doResponse(Properties conProp, httpHeader requestHeader, OutputStrea
//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())) ){
Expand Down

0 comments on commit c2e6afb

Please sign in to comment.