Author: nextgens
Date: 2006-06-03 13:27:22 +0000 (Sat, 03 Jun 2006)
New Revision: 9022
Modified:
trunk/freenet/src/freenet/clients/http/QueueToadlet.java
Log:
Doh! a few fixes on the QueueToadlet
Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/QueueToadlet.java 2006-06-03
12:33:25 UTC (rev 9021)
+++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java 2006-06-03
13:27:22 UTC (rev 9022)
@@ -50,6 +50,8 @@
} catch (MessageInvalidException e) {
this.sendErrorPage(ctx, 200, "Failed to remove
request", "Failed to remove "+HTMLEncoder.encode(identifier)+" :
"+HTMLEncoder.encode(e.getMessage()));
}
+ writePermanentRedirect(ctx, "Done", "/queue/");
+ return;
}
if(request.isParameterSet("download")) {
// Queue a download
@@ -71,6 +73,8 @@
String persistence = request.getParam("persistence");
String returnType = request.getParam("return-type");
fcp.makePersistentGlobalRequest(fetchURI,
expectedMIMEType, persistence, returnType);
+ writePermanentRedirect(ctx, "Done", "/queue/");
+ return;
}
this.handleGet(uri, ctx);
}