]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/CGI/Maypole.pm
removed Maypole::Model->description,
[maypole.git] / lib / CGI / Maypole.pm
index 94fd27b3f79458245154e584a4dc4c596cf73176..e002cf2d2ddc47099d291fedd849496219bf7d9f 100644 (file)
@@ -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,8 +58,8 @@ sub send_output {
         -charset         => $r->{document_encoding},
         -content_length  => do { use bytes; length $r->{output} },
     );
-    foreach ($r->headers_out->header_field_names) {
-        next if /^Content-/;
+    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<mod_perl> 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<Maypole::Application>.
+
 
 =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<Maypole> for these:
 
 =over
@@ -140,3 +142,5 @@ functionality. See L<Maypole> for these:
 Dave Ranney C<dave@sialia.com>
 
 Simon Cozens C<simon@cpan.org>
+
+=cut