Skip to content

Commit b3a1fb4

Browse files
committed
fixed CGI environment detection for broken web servers
1 parent 4c6bab7 commit b3a1fb4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: Changes

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
This file documents the revision history for Perl extension Mojolicious.
22

33
0.999928 2010-08-15 00:00:00
4+
- Fixed CGI environment detection for broken web servers.
45
- Fixed redirect_to without content and render_static bug.
56
- Fixed nested partial rendering bug. (yko)
67
- Fixed multiple small Mojo::DOM bugs. (yko)

Diff for: lib/Mojo/Commands.pm

+1-4
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ sub _detect {
145145
# PSGI (Plack only for now)
146146
return 'psgi' if defined $ENV{PLACK_ENV};
147147

148-
# No further detection if we have a name
149-
return $name if $name;
150-
151148
# CGI
152149
return 'cgi'
153150
if defined $ENV{PATH_INFO} || defined $ENV{GATEWAY_INTERFACE};
@@ -156,7 +153,7 @@ sub _detect {
156153
return 'fastcgi' unless defined $ENV{PATH};
157154

158155
# Nothing
159-
return;
156+
return $name;
160157
}
161158

162159
1;

0 commit comments

Comments
 (0)