perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Peters <mpet...@plusthree.com>
Subject Re: $r->status no correct
Date Wed, 29 Oct 2008 20:13:32 GMT
Ryan Gies wrote:
> On Wed, 29 Oct 2008 15:29:18 -0400
> Michael wrote:
> 
>> So what's going on here. Shouldn't the 2 requests (/foo
>> and /foo/index.pl) be treated exactly the same?
> 
> /foo is much different than /foo/index.pl because /foo is handled by
> mod_dir (http://httpd.apache.org/docs/2.0/mod/mod_dir.html).

Ok then let's talk about "/foo/" and "/foo/index.pl" so that we're not talking about the redirect.

>     return Apache2::Const::OK unless $r->is_initial_req;

I'm now have the following for debugging:
   warn "URI: " . $r->uri . " STATUS: " . $r->status
     . " main: " . $r->is_main . " initial: " . $r->is_initial_req . "\n";

When run for /foo/index I get:
URI: /foo/index.pl STATUS: 500 main: 1 initial: 1
When run for /foo/ I get:
URI: /foo/ STATUS: 200 main: 1 initial: 1

So they both show up as initial requests and the main request. Plus if it was subrequests
that were 
the problem I would have expected to see more than debug statement in the log since the cleanup

handler was getting more than once, right?

-- 
Michael Peters
Plus Three, LP


Mime
View raw message