X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngineLoader.pm;h=22b6ff06460bc81fc3d9af5d61463b2aee09f05a;hb=f7a3f8fd0a1df1dc3f5811747cfa377a020b9dcc;hp=5d8ae584db79f41d391df8c984fc878b8499062d;hpb=a26a6adbaa05988a49cf8867afccdc0cfc5bd417;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/EngineLoader.pm b/lib/Catalyst/EngineLoader.pm index 5d8ae58..22b6ff0 100644 --- a/lib/Catalyst/EngineLoader.pm +++ b/lib/Catalyst/EngineLoader.pm @@ -39,7 +39,7 @@ sub _guess_catalyst_engine_class { if (!defined $old_engine) { return 'Catalyst::Engine'; } - elsif ($old_engine =~ /^(CGI|FCGI|HTTP|Apache.*)$/) { + elsif ($old_engine =~ /^(PSGI|CGI|FastCGI|HTTP|Apache.*)$/) { return 'Catalyst::Engine'; } else { @@ -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 =~ /^(CGI|FCGI|HTTP|Apache.*)$/) { + elsif ($old_engine =~ /^(PSGI|CGI|HTTP|Apache.*)$/) { # Trust autodetect } + elsif ($old_engine eq 'FastCGI') { + $engine = 'FCGI'; + } elsif ($old_engine eq "HTTP::Prefork") { # Too bad if you're customising, we don't handle options # write yourself a script to collect and pass in the options $engine = "Starman";