On Fri, May 11, 2001 at 12:16:13AM -0700, Dev Random wrote:
> Can you please try the attached diff and let me know if it solves the problem?
And here is the actual diff. ;)
Index: HttpHandlerServlet.java
===================================================================
RCS file: /cvsroot/freenet/Freenet/contrib/fproxy/HttpHandlerServlet.java,v
retrieving revision 1.40
diff -u -r1.40 HttpHandlerServlet.java
--- HttpHandlerServlet.java 2001/04/27 04:02:39 1.40
+++ HttpHandlerServlet.java 2001/05/11 07:08:44
@@ -134,7 +134,7 @@
do { line = r.readLine(); } while (line != null &&
!"".equals(line));
// Perform the get
if (attrs.containsKey("key")) {
- String loc = "/" +
java.net.URLEncoder.encode((String)attrs.get("key"));
+ String loc = "/" + attrs.get("key");
attrs.remove("key");
String qs = "";
for (Enumeration e = attrs.keys() ; e.hasMoreElements() ;) {
@@ -144,7 +144,7 @@
if (!qs.equals("")) {
loc += "?"+qs;
}
- System.out.println("Got key in query string, issuing a 301..");
+ //System.out.println("Got key in query string, issuing a 301..");
pw.print("HTTP/1.0 301 Moved Permanently\015\012");
pw.print("Connection: close\015\012");
pw.print("Location: "+loc+"\015\012");
PGP signature