On Monday 14 May 2007 12:48 pm, you wrote:
> Could you try inlining $m->redirect as well,  
> taking the code from ApacheHandler.pm line 212 or so, then seeing if  
> you can remove a line and make things work as you did with #3?

I'll try this and report back.



On Monday 14 May 2007 12:48 pm, you wrote:
> Your  replacement in #2 is setting the status rather than aborting with it.

Oops, looking back, I see that I didn't accurately report the code in my test:

> On May 14, 2007, at 8:57 AM, Charlie Katz wrote:
> > 2) the redirect works if I replace $m->redirect with
> >      $m->clear_buffer;
> >      $r->err_headers_out->set("Location", $dest);
> >      $r->status(302);

The code I actually used is

$m->clear_buffer;
$r->err_headers_out->set("Location", $dest);
$r->status(302);
return;

I guess this ends up leaving any subsequently generated autohandler output in 
the buffer, but the redirect does work.  It was just a quickie test.

-Charlie

-- 
Charlie Katz
Harvard-Smithsonian Center for Astrophysics
[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to