X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FCGI%2FMaypole.pm;h=e002cf2d2ddc47099d291fedd849496219bf7d9f;hb=d2c852208417c014caec0436a677fcadccc197d8;hp=793d47fb1d5c3ea1032841719281e05afc35fb4e;hpb=b91bc53de6872ec4b22779382f6955b3af7c6fd5;p=maypole.git diff --git a/lib/CGI/Maypole.pm b/lib/CGI/Maypole.pm index 793d47f..e002cf2 100644 --- a/lib/CGI/Maypole.pm +++ b/lib/CGI/Maypole.pm @@ -6,7 +6,7 @@ use warnings; use CGI::Simple; use Maypole::Headers; -our $VERSION = '2.05'; +our $VERSION = '2.07'; sub run { my $self = shift; @@ -58,7 +58,7 @@ sub send_output { -charset => $r->{document_encoding}, -content_length => do { use bytes; length $r->{output} }, ); - foreach ($r->headers_out->header_field_names) { + foreach ($r->headers_out->field_names) { next if /^Content-(Type|Length)/; $headers{"-$_"} = $r->headers_out->get($_); } @@ -103,8 +103,10 @@ http://your.site/cgi-bin/beer.cgi/frontpage =head1 DESCRIPTION -This is a handler for Maypole which will use the CGI instead of Apache's -C 1.x. This handler can also be used for Apache 2.0. +This is a CGI platform driver for Maypole. Your application can inherit from +CGI::Maypole directly, but it is recommended that you use +L. + =head1 METHODS @@ -118,7 +120,7 @@ Call this from your CGI script to start the Maypole application. =head1 Implementation -This class overrides a set of methods in the base Maypole class to provide it's +This class overrides a set of methods in the base Maypole class to provide it's functionality. See L for these: =over @@ -140,3 +142,5 @@ functionality. See L for these: Dave Ranney C Simon Cozens C + +=cut