add URI::http to C::E::Apache so it gets loaded during startup phase
Christian Hansen [Mon, 4 Apr 2005 04:49:48 +0000 (04:49 +0000)]
lib/Catalyst/Engine.pm
lib/Catalyst/Engine/Apache.pm

index 2248f44..fa8d9f1 100644 (file)
@@ -167,7 +167,7 @@ sub finalize {
     if ( my $location = $c->response->redirect ) {
         $c->log->debug(qq/Redirecting to "$location"/) if $c->debug;
         $c->response->header( Location => $location );
-        $c->response->status(302) if $c->response->status !~ /3\d\d$/;
+        $c->response->status(302) if $c->response->status !~ /^3\d\d$/;
     }
 
     if ( $#{ $c->error } >= 0 ) {
index ac7fe90..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/);