Skip to content

Commit aa7c8da

Browse files
committed
made detection a little less aggressive
1 parent 5a3cd1f commit aa7c8da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: lib/Mojo/Commands.pm

+4-1
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,14 @@ sub _detect {
149149
return 'cgi'
150150
if defined $ENV{PATH_INFO} || defined $ENV{GATEWAY_INTERFACE};
151151

152+
# No further detection if we have a name
153+
return $name if $name;
154+
152155
# FastCGI
153156
return 'fastcgi' unless defined $ENV{PATH};
154157

155158
# Nothing
156-
return $name;
159+
return;
157160
}
158161

159162
1;

0 commit comments

Comments
 (0)