[freenet-cvs] r15696 - trunk/freenet/src/freenet/clients/http

dbkr at freenetproject.org dbkr at freenetproject.org
Mon Nov 5 23:01:06 UTC 2007


Author: dbkr
Date: 2007-11-05 23:01:05 +0000 (Mon, 05 Nov 2007)
New Revision: 15696

Modified:
   trunk/freenet/src/freenet/clients/http/PproxyToadlet.java
Log:
Don't create a new headers tabe and then ultimately use the wrong one, and I'm assuming that redirecting to /queue/ was a copy & paste accident.


Modified: trunk/freenet/src/freenet/clients/http/PproxyToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/PproxyToadlet.java	2007-11-05 21:41:52 UTC (rev 15695)
+++ trunk/freenet/src/freenet/clients/http/PproxyToadlet.java	2007-11-05 23:01:05 UTC (rev 15696)
@@ -51,9 +51,8 @@
 
 		String pass = request.getPartAsString("formPassword", 32);
 		if((pass == null) || !pass.equals(core.formPassword)) {
-			MultiValueTable hdrs = new MultiValueTable();
-			headers.put("Location", "/queue/");
-			ctx.sendReplyHeaders(302, "Found", hdrs, null, 0);
+			headers.put("Location", "/plugins/");
+			ctx.sendReplyHeaders(302, "Found", headers, null, 0);
 			return;
 		}
 




More information about the cvs mailing list