Author: toad
Date: 2006-08-17 21:40:32 +0000 (Thu, 17 Aug 2006)
New Revision: 10180

Modified:
   trunk/freenet/src/freenet/clients/http/QueueToadlet.java
Log:
force it to be downloaded.

Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/QueueToadlet.java    2006-08-17 
20:48:43 UTC (rev 10179)
+++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java    2006-08-17 
21:40:32 UTC (rev 10180)
@@ -217,7 +217,7 @@
                                                                                
}
                                                                                
MultiValueTable responseHeaders = new MultiValueTable();
                                                                                
responseHeaders.put("Content-Disposition", "attachment; filename=\"" + 
clientGet.getURI().getMetaString() + "\"");
-                                                                               
writeReply(ctx, 200, clientGet.getMIMEType(), "OK", responseHeaders, 
dataBucket);
+                                                                               
writeReply(ctx, 200, "application/x-msdownload", "OK", responseHeaders, 
dataBucket);
                                                                                
return;
                                                                        }
                                                                        
HTMLNode pageNode = ctx.getPageMaker().getPageNode("Potentially Unsafe 
Content");


Reply via email to