X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2FApache%2FMVC.pm;h=7c016ebc82060866b54466985f9ffc1242979f0e;hb=15f2c20e85df52d515b73801a9af99ff4d6a3213;hp=edb005fc47c39a607c165a367cf858f5b2b35b3a;hpb=d90d317858fe10b73bb00ea9c67f98a7f56a1d4d;p=maypole.git diff --git a/lib/Apache/MVC.pm b/lib/Apache/MVC.pm index edb005f..7c016eb 100644 --- a/lib/Apache/MVC.pm +++ b/lib/Apache/MVC.pm @@ -17,7 +17,7 @@ if (APACHE2) { else { require Apache } require Apache::Request; -our $VERSION = "0.4"; +our $VERSION = "2.03"; sub get_request { my ( $self, $r ) = @_; @@ -42,7 +42,8 @@ sub parse_args { sub send_output { my $r = shift; - $r->{ar}->content_type( $r->{content_type} ."; ".$r->{document_encoding} ); + $r->{ar}->content_type( + $r->{content_type} . "; charset=" . $r->{document_encoding} ); $r->{ar}->headers_out->set( "Content-Length" => length $r->{output} ); APACHE2 || $r->{ar}->send_http_header; $r->{ar}->print( $r->{output} ); @@ -152,6 +153,25 @@ C commands; for instance, a list of breweries, go to For more information about how the system works and how to extend it, see L. +=head1 Implementation + +This class overrides a set of methods in the base Maypole class to provide it's +functionality. See L for these: + +=over + +=item get_request + +=item get_template_root + +=item parse_args + +=item parse_location + +=item send_output + +=back + =head1 AUTHOR Simon Cozens, C