]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC.pm
Maypole::Application supports Maypole::HTTPD (which needs a patch).
[maypole.git] / lib / Apache / MVC.pm
index 3ee8541a3882a58cb9b2a9c10bf18aacf64afc2d..4623b9f607dbaf3c6fb2d0f47876166ed7b9d111 100644 (file)
@@ -82,7 +82,7 @@ functionality. See L<Maypole> for these:
 
 sub get_request {
     my ($self, $r) = @_;
-    my $ar = (APACHE2) ? Apache2::Request->new($r) : Apache::Request->new($r);
+    my $ar = (APACHE2) ? Apache2::Request->new($r) : Apache::Request->instance($r);
     $self->ar($ar);
 }
 
@@ -101,7 +101,6 @@ sub parse_location {
     for (keys %headers) {
         $self->headers_in->set($_, $headers{$_});
     }
-
     my $path = $self->ar->uri;
     my $loc  = $self->ar->location;
     {