Skip to content

Commit

Permalink
base handles this for us
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpd/apreq/trunk@1067479 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Joe Schaefer committed Feb 5, 2011
1 parent 9f81b23 commit f5a5f41
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions glue/perl/lib/APR/Request/Magic.pm
Expand Up @@ -4,13 +4,11 @@ my $ctx;
eval { local $ENV{PERL_DL_NONLAZY} = 1; require APR::Request::Apache2; };
if ($@) {
require APR::Request::CGI;
require APR::Pool;
base->import("APR::Pool");
*handle = sub { $ctx ||= bless APR::Pool->new; APR::Request::CGI->handle($ctx, @_) };
our $MODE = "CGI";
}
else {
require Apache2::RequestRec;
require Apache2::RequestUtil;
base->import("Apache2::RequestRec");
*handle = sub { APR::Request::Apache2->handle(Apache2::RequestUtil->request, @_) };
Expand Down

0 comments on commit f5a5f41

Please sign in to comment.