On 06/14/07 16:14, Sergij Borodych wrote:
> Hi ALL,
>
> I need some help
>
> I set auth_type (like $r->auth_type('MyType')) in PerlAuthenHandler
> if request go in "/" (root) it generate subrequest
> for lookup index.html file name
> after this in subrequest I lost auth_type (but I ignore subrequests)
> but even in PerlLogHandler I can't determine it
>
> this is bug or not ?
> becouse in documentation:
>>auth_type
>>Get/set the type of authorization required for _this request_
>
> I may try workaround with use "pnotes", but I want desirably less as
> possibly a superfluous code
>
As I undestand second(subrequest) call of PerlAuthenHandler
destroy(remove) my auth_type set(even for main request), so
I fix it
set
$r->auth_type('MyType');
before
return OK unless $r->is_initial_req();
so even in subrequest I set auth_type
But I have suspicion - is the bug ?
(I about PerlLogHandler without defined auth_type)
How do you think ?
--
Sergij Borodych
http://bor.org.ua