This code is entirely obsolete. I have been meaning to delete it.
Use Freenet.client.http.FproxyServlet instead.
On Friday 12 October 2001 10:45, you wrote:
> I was getting compile errors Freenet.contrib.fproxy.FproxyServlet. The
> problem seems to be related to MIME_binary changing its API so that
> instead of getBody() and getBodyAsBucket(), it's now getBodyAsString()
> and getBody(), respectively.
>
> My patch is below:
>
> diff -u -r1.2 FproxyServlet.java
> --- Freenet/contrib/fproxy/FproxyServlet.java 2001/08/23 01:22:09 1.2
> +++ Freenet/contrib/fproxy/FproxyServlet.java 2001/10/12 14:55:32
> @@ -477,12 +477,12 @@
> typeExpected = "application/octet-stream";
> // TODO: use FileBuckets, or maybe some kind of lazy
> evaluation // decoding-on-demand
> - data = part1.getBodyAsBucket();
> - key = new String(part0.getBody());
> - userHtl = new String(part2.getBody());
> + data = part1.getBody();
> + key = new String(part0.getBodyAsString());
> + userHtl = new String(part2.getBodyAsString());
> if (!userHtl.equals(""))
> params.put("htl", userHtl);
> - contentType = new String(part3.getBody());
> + contentType = new String(part3.getBodyAsString());
> logger.log(this, "User specified htl: " + userHtl,
> Logger.DEBUGGING);
> logger.log(this, "User specified content-type: "+contentType,
>
> --Mirian
>
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://lists.freenetproject.org/mailman/listinfo/devl
--
Freesites
(0.3) freenet:MSK at SSK@enI8YFo3gj8UVh-Au0HpKMftf6QQAgE/homepage//
(0.4) freenet:SSK at npfV5XQijFkF6sXZvuO0o~kG4wEPAgM/homepage//
_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl