Author: toad
Date: 2008-07-29 22:15:12 +0000 (Tue, 29 Jul 2008)
New Revision: 21494
Modified:
branches/db4o/freenet/src/freenet/clients/http/QueueToadlet.java
Log:
indent
Modified: branches/db4o/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- branches/db4o/freenet/src/freenet/clients/http/QueueToadlet.java
2008-07-29 22:10:54 UTC (rev 21493)
+++ branches/db4o/freenet/src/freenet/clients/http/QueueToadlet.java
2008-07-29 22:15:12 UTC (rev 21494)
@@ -414,25 +414,25 @@
if(requestPath.equals("countRequests.html") ||
requestPath.equals("/countRequests.html")) {
countRequests = true;
} else {
- /* okay, there is something in the path, check it. */
- try {
- FreenetURI key = new FreenetURI(requestPath);
-
- /* locate request */
- TempFetchResult result =
fcp.getCompletedRequestBlocking(key);
- if(result != null) {
- Bucket data = result.asBucket();
- String mimeType = result.getMimeType();
- String requestedMimeType =
request.getParam("type", null);
- String forceString =
request.getParam("force");
- FProxyToadlet.handleDownload(ctx, data,
ctx.getBucketFactory(), mimeType, requestedMimeType, forceString,
request.isParameterSet("forcedownload"), "/queue/", key, "", "/queue/", false,
ctx);
- if(result.freeWhenDone)
- data.free();
- return;
+ /* okay, there is something in the path, check
it. */
+ try {
+ FreenetURI key = new
FreenetURI(requestPath);
+
+ /* locate request */
+ TempFetchResult result =
fcp.getCompletedRequestBlocking(key);
+ if(result != null) {
+ Bucket data = result.asBucket();
+ String mimeType =
result.getMimeType();
+ String requestedMimeType =
request.getParam("type", null);
+ String forceString =
request.getParam("force");
+
FProxyToadlet.handleDownload(ctx, data, ctx.getBucketFactory(), mimeType,
requestedMimeType, forceString, request.isParameterSet("forcedownload"),
"/queue/", key, "", "/queue/", false, ctx);
+ if(result.freeWhenDone)
+ data.free();
+ return;
+ }
+ } catch (MalformedURLException mue1) {
}
- } catch (MalformedURLException mue1) {
}
- }
}
class OutputWrapper {