diff --git a/updown/fetch.cgi b/updown/fetch.cgi index af9f73cc9..4d0587479 100755 --- a/updown/fetch.cgi +++ b/updown/fetch.cgi @@ -68,8 +68,10 @@ if ($ENV{'PATH_INFO'}) { # See if it is really text $out = &backquote_command("file ". quotemeta(&resolve_links($file))); - $type = "text/plain" if ($out =~ /text|script/); } + $type = "text/plain" + if ($type =~ /text|java|script/ || + $out =~ /text|java|script/); } else { print "Content-Disposition: Attachment\n";