On Thu, Aug 10, 2006 at 12:35:34PM +0100, Dave Baker wrote:
> On Thursday 10 August 2006 10:24, bombe at freenetproject.org wrote:
> > Author: bombe
> > Date: 2006-08-10 09:24:28 +0000 (Thu, 10 Aug 2006)
> > New Revision: 10018
> > 
> > Modified:
> >    trunk/freenet/src/freenet/clients/http/QueueToadlet.java
> > Log:
> > refresh queue page every 30 seconds
> > 
> > Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
> > ===================================================================
> > --- trunk/freenet/src/freenet/clients/http/QueueToadlet.java        
> > 2006-08-10 
> 08:33:37 UTC (rev 10017)
> > +++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java        
> > 2006-08-10 
> 09:24:28 UTC (rev 10018)
> > @@ -433,7 +433,9 @@
> >                     }
> >             }
> >             
> > -           this.writeReply(ctx, 200, "text/html", "OK", 
> > pageNode.generate());
> > +           MultiValueTable pageHeaders = new MultiValueTable();
> > +           pageHeaders.put("Refresh", "30; URL=.");
> > +           this.writeReply(ctx, 200, "text/html", "OK", pageHeaders, 
> pageNode.generate());
> >     }
> 
> 
> The HTTP Refresh header isn't part of the HTTP spec, and it doesn't work on 
> Konqueror.

I thought the right way to do it was with a Location header?
> 
> Either way, what happens if 30 seconds runs out whilst the user is filling in 
> the 'Insert File' form at the bottom?
> 
> Dave
-- 
Matthew J Toseland - toad at amphibian.dyndns.org
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20060810/44d3dfe4/attachment.pgp>

Reply via email to