my $js = build_javascript(); if ( exists $ENV{HTTP_HOST} ) { print "Content-type: text/javascript\n\n"; } print $js;
有没有更好的办法?@H_301_5@
4.1.4. GATEWAY_INTERFACE The GATEWAY_INTERFACE variable MUST be set to the dialect of CGI being used by the server to communicate with the script. @H_301_5@
GATEWAY_INTERFACE
The GATEWAY_INTERFACE variable MUST be set to the dialect of CGI being used by the server to communicate with the script. @H_301_5@