Fix: Support for the standard mime.types map in gitweb

Temporary fix: commented out offending line in mimetype_guess.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Jakub Narebski 2006-06-20 06:19:31 +00:00 committed by Junio C Hamano
parent 7b6511a13f
commit 57bd4d3523
1 changed files with 1 additions and 1 deletions

View File

@ -1518,7 +1518,7 @@ sub mimetype_guess {

if ($mimetypes_file) {
my $file = $mimetypes_file;
$file =~ m#^/# or $file = "$projectroot/$path/$file";
#$file =~ m#^/# or $file = "$projectroot/$path/$file";
$mime = mimetype_guess_file($filename, $file);
}
$mime ||= mimetype_guess_file($filename, '/etc/mime.types');