1 package Catalyst::Engine::Apache::MP13::Base;
4 use base 'Catalyst::Engine::Apache::Base';
7 use Apache::Constants ();
9 Apache::Constants->import(':common');
13 Catalyst::Engine::Apache::MP13::Base - Base class for MP 1.3 Engines
21 This is a base class for MP 1.3 Engines.
23 =head1 OVERLOADED METHODS
25 This class overloads some methods from C<Catalyst::Engine::Apache::Base>.
29 =item $c->finalize_headers
33 sub finalize_headers {
36 for my $name ( $c->response->headers->header_field_names ) {
37 next if $name =~ /Content-Type/i;
38 my @values = $c->response->header($name);
39 $c->apache->headers_out->add( $name => $_ ) for @values;
42 if ( $c->response->header('Set-Cookie') && $c->response->status >= 300 ) {
43 my @values = $c->response->header('Set-Cookie');
44 $c->apache->err_headers_out->add( 'Set-Cookie' => $_ ) for @values;
47 $c->apache->status( $c->response->status );
48 $c->apache->content_type( $c->response->header('Content-Type') );
50 $c->apache->send_http_header;
60 shift->SUPER::handler(@_);
67 L<Catalyst>, L<Catalyst::Engine>, L<Catalyst::Engine::Apache::Base>.
71 Sebastian Riedel, C<sri@cpan.org>
72 Christian Hansen C<ch@ngmedia.com>
76 This program is free software, you can redistribute it and/or modify it under
77 the same terms as Perl itself.