Update of /cvsroot/freenet/freenet/src/freenet/client/http
In directory sc8-pr-cvs1:/tmp/cvs-serv25430/src/freenet/client/http

Modified Files:
        SplitFileRequestContext.java 
Log Message:
6296:
A few more Eclipse warning fixes, slightly functional this time - use our built-in URL 
codecs, rather than the deprecated java ones, for example, and catch their exceptions.
Add support for deprecated options - which won't be written out when generating a 
config, but will be recognized if set. bandwidthLimit and averageBandwidthLimit are 
the first.
Change way we handle deprecated bandwidthLimit option, hopefully fix constant 100% 
load.
Remove unused method NGRouting.transferFailed().


Index: SplitFileRequestContext.java
===================================================================
RCS file: 
/cvsroot/freenet/freenet/src/freenet/client/http/SplitFileRequestContext.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -w -r1.20 -r1.21
--- SplitFileRequestContext.java        30 Oct 2003 01:34:06 -0000      1.20
+++ SplitFileRequestContext.java        1 Nov 2003 15:13:35 -0000       1.21
@@ -31,6 +31,7 @@
 import freenet.support.HTMLEncoder;
 import freenet.support.Logger;
 import freenet.support.URLEncodedFormatException;
+import freenet.support.URLEncoder;
 
 /**
  * Stateful "sub-servlet" to provide user feedback for
@@ -409,7 +410,7 @@
         String linkURI = null;
 
         // LATER: clean up so browsers get better filename?
-        linkURI = java.net.URLEncoder.encode(PREFIX + contextID + "/download/" + uri);
+        linkURI = URLEncoder.encode(PREFIX + contextID + "/download/" + uri);
 
         String htlAsString = Integer.toString(htl);
         String retryHtlIncrementAsString = Integer.toString(retryHtlIncrement);

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to