Merged 5.49_01 (r1339) from refactored branch to trunk
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / Apache / MP13 / Base.pm
diff --git a/lib/Catalyst/Engine/Apache/MP13/Base.pm b/lib/Catalyst/Engine/Apache/MP13/Base.pm
deleted file mode 100644 (file)
index e22e408..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-package Catalyst::Engine::Apache::MP13::Base;
-
-use strict;
-use base 'Catalyst::Engine::Apache::Base';
-
-use Apache            ();
-use Apache::Constants ();
-use Apache::File      ();
-
-Apache::Constants->import(':common');
-
-=head1 NAME
-
-Catalyst::Engine::Apache::MP13::Base - Base class for MP 1.3 Engines
-
-=head1 SYNOPSIS
-
-See L<Catalyst>.
-
-=head1 DESCRIPTION
-
-This is a base class for MP 1.3 Engines.
-
-=head1 OVERLOADED METHODS
-
-This class overloads some methods from C<Catalyst::Engine::Apache::Base>.
-
-=over 4
-
-=item $c->finalize_headers
-
-=cut
-
-sub finalize_headers {
-    my $c = shift;
-
-    for my $name ( $c->response->headers->header_field_names ) {
-        next if $name =~ /^Content-(Length|Type)$/i;
-        my @values = $c->response->header($name);
-        $c->apache->headers_out->add( $name => $_ ) for @values;
-    }
-
-    if ( $c->response->header('Set-Cookie') && $c->response->status >= 300 ) {
-        my @values = $c->response->header('Set-Cookie');
-        $c->apache->err_headers_out->add( 'Set-Cookie' => $_ ) for @values;
-    }
-
-    $c->apache->status( $c->response->status );
-
-    if ( my $type = $c->response->header('Content-Type') ) {
-        $c->apache->content_type($type);
-    }
-
-    if ( my $length = $c->response->content_length ) {
-        $c->apache->set_content_length($length);
-    }
-
-    $c->apache->send_http_header;
-
-    return 0;
-}
-
-=item $c->handler
-
-=cut
-
-sub handler ($$) {
-    shift->SUPER::handler(@_);
-}
-
-=back
-
-=head1 SEE ALSO
-
-L<Catalyst>, L<Catalyst::Engine>, L<Catalyst::Engine::Apache::Base>.
-
-=head1 AUTHOR
-
-Sebastian Riedel, C<sri@cpan.org>
-Christian Hansen C<ch@ngmedia.com>
-
-=head1 COPYRIGHT
-
-This program is free software, you can redistribute it and/or modify it under
-the same terms as Perl itself.
-
-=cut
-
-1;