John Williams wrote:
> On Tue, 5 Dec 2006, Oliver Jeeves wrote:
>> Forgive me if I'm wrong, but doesn't mod_perl buffer output, and
>> therefore allows you to mix-and-match when you output content and headers?
>
> To some extent, yes, but notice that the sample code explicitly calls
> flush_buffer to output the buffer BEFORE it calls redirect which sets the
> header.
>
> <%perl>
> if( $m->session->{isplaying} == 1 ) {
> $m->flush_buffer();
> $m->redirect('next_image.html');
> }
> </%perl>
>
> I suspect that removing the flush_buffer will fix the problems.
> AFAIK browsers never show content from a redirect unless something goes
> horribly wrong.
>
> ~ John WilliamsThat's not what I meant - I agree with that. I was just suggesting that you can change the headers after you've generated some HTML, because mod_perl is magic.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users

