On Wednesday 04 June 2008 23:30, [EMAIL PROTECTED] wrote:
> Author: bombe
> Date: 2008-06-04 22:30:22 +0000 (Wed, 04 Jun 2008)
> New Revision: 20207
> 
> Modified:
>    trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
> Log:
> return 404 on "file not in archive", needed for git-over-fproxy
> 
> Modified: trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/FProxyToadlet.java 2008-06-04 
22:08:55 UTC (rev 20206)
> +++ trunk/freenet/src/freenet/clients/http/FProxyToadlet.java 2008-06-04 
22:30:22 UTC (rev 20207)
> @@ -523,7 +523,7 @@
>                               option = optionList.addChild("li");
>                               
> option.addChild(ctx.getPageMaker().createBackLink(ctx, 
l10n("goBackToPrev")));
>                               
> -                             this.writeHTMLReply(ctx, 500 /* close enough - 
> FIXME probably should 
depend on status code */,
> +                             this.writeHTMLReply(ctx, (e.mode == 10) ? 404 : 
> 500 /* close enough - 
FIXME probably should depend on status code */,

Please use the constant, not the hardcoded integer!

Attachment: pgpP9EdqtCwZ2.pgp
Description: PGP signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to