Justin Hawkins wrote:
> As it says here:
> 
> http://www.masonhq.com/docs/manual/1.28/CGIHandler.html#calling_abort___under_cgihandler
> 
> 
> It doesn't work right (you can't set a non-200 HTTP status code).
> 

I've had the same problem, and I'm using the ApacheHandler that comes
with Mason. Although admitedly, it's Mason version 1.32, not the latest
version.

In particular, the problem I had was that $m->redirect didn't work. This
is because redirect works by setting the location header, and then
aborting with a 3xx status. The location would be set, but the browser
wouldn't automatically redirect because it was getting a 200 status.

The status can be set under mod_perl using:

$r->status($status);

So to abort, you can:

$r->status($status);
$m->abort;

Similarly, I've found I've had to write my own redirect function to take
care of this.

I mentioned this on the mailing list back at the beginning of the month.

-Oli


Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to