Make HTTP force standalone
Tomas Doran [Wed, 30 Mar 2011 12:43:04 +0000 (13:43 +0100)]
lib/Catalyst/EngineLoader.pm

index 22b6ff0..f2b999a 100644 (file)
@@ -82,9 +82,12 @@ around guess => sub {
     my $old_engine = Catalyst::Utils::env_value($self->application_name, 'ENGINE');
     if (!defined $old_engine) { # Not overridden
     }
-    elsif ($old_engine =~ /^(PSGI|CGI|HTTP|Apache.*)$/) {
+    elsif ($old_engine =~ /^(PSGI|CGI|Apache.*)$/) {
         # Trust autodetect
     }
+    elsif ($old_engine eq 'HTTP') {
+        $engine = 'Standalone';
+    }
     elsif ($old_engine eq 'FastCGI') {
         $engine = 'FCGI';
     }