Fix to mime detection by file extension
Fixed MODIFY_CODE_ATTRIBUTES and FETCH_CODE_ATTRIBUTES to work with mod_perl threaded model
- Patch from Ben Hutchings http://rt.cpan.org/Public/Bug/Display.html?id=29984
+ fixes for bug 29982 Inconsistency between examples and tutorial (patch from Ben Hutchings)
+ fixed apache_mvc.t to work with Apache2 (bug #29979 patch from Ben Hutchings)
Improvements :
link macro now takes a target argument, and has slightly better pod
#!/usr/bin/perl -w
use strict;
use Test::More;
+
BEGIN {
- if (eval { require Apache::Request }) {
+ if (eval { require Apache2::RequestRec }) {
+ $ENV{MOD_PERL_API_VERSION} = 2;
+ plan tests => 3;
+ } elsif (eval { require Apache::Request }) {
plan tests => 3;
} else {
- Test::More->import(skip_all =>"Apache::Request is not installed: $@");
+ Test::More->import(skip_all =>"Neither Apache2::RequestRec nor Apache::Request is installed: $@");
}
}
require_ok('Apache::MVC');
ok($Apache::MVC::VERSION, 'defines $VERSION');
ok(Apache::MVC->can('ar'), 'defines an "ar" accessor');
+
# defines $VERSION
# uses mod_perl
# @ISA = 'Maypole'