Author: toad
Date: 2007-06-16 20:36:14 +0000 (Sat, 16 Jun 2007)
New Revision: 13628
Modified:
trunk/freenet/src/freenet/node/fcp/ClientGet.java
Log:
Make it actually work
Modified: trunk/freenet/src/freenet/node/fcp/ClientGet.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ClientGet.java 2007-06-16 20:30:15 UTC
(rev 13627)
+++ trunk/freenet/src/freenet/node/fcp/ClientGet.java 2007-06-16 20:36:14 UTC
(rev 13628)
@@ -146,6 +146,12 @@
// Has already been checked
fctx.maxOutputLength = message.maxSize;
fctx.maxTempLength = message.maxTempSize;
+
+ if(message.allowedMIMETypes != null) {
+ fctx.allowedMIMETypes = new HashSet();
+ for(int i=0;i<message.allowedMIMETypes.length;i++)
fctx.allowedMIMETypes.add(message.allowedMIMETypes[i]);
+ }
+
this.returnType = message.returnType;
this.binaryBlob = message.binaryBlob;
Bucket ret = null;