On Wednesday 04 June 2008 23:30, bombe at freenetproject.org 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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080711/cf693500/attachment.pgp>