We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a3cd1f commit aa7c8daCopy full SHA for aa7c8da
lib/Mojo/Commands.pm
@@ -149,11 +149,14 @@ sub _detect {
149
return 'cgi'
150
if defined $ENV{PATH_INFO} || defined $ENV{GATEWAY_INTERFACE};
151
152
+ # No further detection if we have a name
153
+ return $name if $name;
154
+
155
# FastCGI
156
return 'fastcgi' unless defined $ENV{PATH};
157
158
# Nothing
- return $name;
159
+ return;
160
}
161
162
1;
0 commit comments