Add URI::http to C::E:CGI so it gets preloaded in FastCGI enviroment
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / Apache.pm
index f715456..3259c3b 100644 (file)
@@ -5,6 +5,7 @@ use mod_perl;
 use constant MP2 => $mod_perl::VERSION >= 1.99;
 use base 'Catalyst::Engine';
 use URI;
+use URI::http;
 
 __PACKAGE__->mk_accessors(qw/apache/);
 
@@ -70,7 +71,7 @@ sub finalize_headers {
 
 sub finalize_output {
     my $c = shift;
-    $c->apache->print( $c->response->{output} );
+    $c->apache->print( $c->response->output );
 }
 
 =item $c->prepare_connection