in reply to Re^5: [mod_perl] path_info() problem
in thread [mod_perl] path_info() problem

see, again i forgot to read a specific part (the DIR_MAGIC_TYPE one)..

but i'm starting to understand it.. i think. I've read your code completely now, and I saw your separation of handle_directory() and handle_file().

now, in my situation, the content_type method always returns undef.

my handler now looks like this:

sub handler ($$) { my ($self,$r)= @_; $self = $self->new unless ref $self; $self->{r} = $r; $self->{content_type}=$r->content_type; $self->{uri}= $self->{r}->uri || '/'; if ($self->{content_type} eq DIR_MAGIC_TYPE) { return DECLINED unless $self->{uri} =~ /\/$/; }
but it never goes in the if loop. Do you need the mime_magic module of Apache to be enabled, or not?

Anyhow: thanks a bunch for helping me! I've just started playing with mod_perl (cuz i've just started reading "practical mod_perl"), but already I've learned a lot! Mostly by just looking at Stonehenge::Pictures. And euhm: always when i learn a new language or so, the first thing i always try to make: is a picture album/browser thing ;-)

to ask a question is a moment of shame
to remain ignorant is a lifelong shame