Apache2-Layer
view release on metacpan or search on metacpan
lib/Apache2/Layer.pm view on Meta::CPAN
}
my $file = File::Spec->canonpath(
File::Spec->catfile(
File::Spec->file_name_is_absolute($dir) ?
$dir : File::Spec->catdir( $r->document_root, $dir ),
$uri
)
);
if ( my $finfo = eval {
APR::Finfo::stat($file, APR::Const::FINFO_NORM, $r->pool)
} ) {
$r->push_handlers(PerlMapToStorageHandler => sub {
my $r = shift;
$r->filename($file);
$r->finfo($finfo);
return Apache2::Const::DECLINED;
});
return Apache2::Const::DECLINED;
}
( run in 1.719 second using v1.01-cache-2.11-cpan-49f99fa48dc )