Author: nextgens
Date: 2007-04-14 00:28:40 +0000 (Sat, 14 Apr 2007)
New Revision: 12674

Modified:
   trunk/freenet/src/freenet/clients/http/PproxyToadlet.java
Log:
Fix a stupid bug

Modified: trunk/freenet/src/freenet/clients/http/PproxyToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/PproxyToadlet.java   2007-04-13 
23:33:14 UTC (rev 12673)
+++ trunk/freenet/src/freenet/clients/http/PproxyToadlet.java   2007-04-14 
00:28:40 UTC (rev 12674)
@@ -76,7 +76,7 @@
                                writeReply(ctx, 200, "text/html", "OK", 
pm.handleHTTPPost(plugin, request));
                        }
                        catch (RedirectPluginHTTPException e) {
-                               writeTemporaryRedirect(ctx, e.message, 
e.location);
+                               writeTemporaryRedirect(ctx, e.message, 
e.newLocation);
                        }
                        catch (NotFoundPluginHTTPException e) {
                                sendErrorPage(ctx, e.code, e.message, 
e.location);
@@ -222,7 +222,7 @@
                        //FetchResult result = fetch(key);
                        //writeReply(ctx, 200, result.getMimeType(), "OK", 
result.asBucket());
                } catch (RedirectPluginHTTPException e) {
-                       writeTemporaryRedirect(ctx, e.message, e.location);
+                       writeTemporaryRedirect(ctx, e.message, e.newLocation);
                } catch (NotFoundPluginHTTPException e) {
                        sendErrorPage(ctx, e.code, e.message, e.location);
                } catch (AccessDeniedPluginHTTPException e) {


Reply via email to