Re: mod_perl Apache2 RequestRec allowed problem

2007-10-09 Thread Christopher Stanton
$r->allowed_methods($reset, $list) only seems to respect the reset flag if the return code from the handler is either Apache2::Const::HTTP_METHOD_NOT_ALLOWED or Apache2::Const::HTTP_NOT_IMPLEMENTED which is not in the documentation. The OPTIONS request is supposed to be URI/resource specific (unle

Re: mod_perl Apache2 RequestRec allowed problem

2007-10-09 Thread Christopher Stanton
Thanks for the reply Geoffrey. I have updated the code to use $r->allow_methods rather than $r->allowed per the documentation at: http://perl.apache.org/docs/2.0/api/Apache2/Access.html#C_allow_methods_ Now additional methods are being included in the response, but the reset boolean does not seem

Re: mod_perl Apache2 RequestRec allowed problem

2007-10-09 Thread Geoffrey Young
Christopher Stanton wrote: > I am trying to set the allowed bitmask in a custom request handler > when I receive the OPTIONS method (and when I receive a method request > for a method I do not support). > > I have followed the example in > http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.h

mod_perl Apache2 RequestRec allowed problem

2007-10-09 Thread Christopher Stanton
I am trying to set the allowed bitmask in a custom request handler when I receive the OPTIONS method (and when I receive a method request for a method I do not support). I have followed the example in http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_allowed_ but Apache always returns