Skip to content

Commit

Permalink
removed Mojo::Server::FastCGI so it can be maintained as a separe dis…
Browse files Browse the repository at this point in the history
…tribution
  • Loading branch information
kraih committed Sep 11, 2011
1 parent 0fc549c commit a1a16bb
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 771 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,6 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

1.98 2011-09-11 00:00:00
- Removed Mojo::Server::FastCGI so it can be maintained as a separate
distribution.
- Added EXPERIMENTAL mojo_lib_dir and slurp_rel_file methods to
Mojo::Home.
- Improved host condition to work in more environments.
Expand Down
2 changes: 1 addition & 1 deletion README.pod
Expand Up @@ -45,7 +45,7 @@ perfect for embedding.

=item *

Automatic CGI, FastCGI and L<PSGI> detection.
Automatic CGI and L<PSGI> detection.

=item *

Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo.pm
Expand Up @@ -55,8 +55,8 @@ Mojo - The Duct Tape!
use Mojo::Base 'Mojo';
# All the complexities of CGI, FastCGI, PSGI, HTTP and WebSockets get
# reduced to a single method call!
# All the complexities of CGI, PSGI, HTTP and WebSockets get reduced to a
# single method call!
sub handler {
my ($self, $tx) = @_;
Expand Down
14 changes: 3 additions & 11 deletions lib/Mojo/Command.pm
Expand Up @@ -20,8 +20,8 @@ has description => 'No description.';
has message => <<"EOF";
usage: $0 COMMAND [OPTIONS]
Tip: CGI, FastCGI and PSGI environments can be automatically detected very
often and work without commands.
Tip: CGI and PSGI environments can be automatically detected very often and
work without commands.
These commands are currently available:
EOF
Expand Down Expand Up @@ -94,16 +94,8 @@ sub detect {
return 'cgi'
if defined $ENV{PATH_INFO} || defined $ENV{GATEWAY_INTERFACE};

# No further detection if we have a guess
return $guess if $guess;

# FastCGI (detect absence of WINDIR for Windows and USER for UNIX)
return 'fastcgi'
if !defined $ENV{WINDIR}
&& !defined $ENV{USER}
&& !defined $ENV{HARNESS_ACTIVE};

# Nothing
return $guess if $guess;
return;
}

Expand Down

0 comments on commit a1a16bb

Please sign in to comment.