Skip to content

Commit

Permalink
Fix: Support for the standard mime.types map in gitweb
Browse files Browse the repository at this point in the history
Temporary fix: commented out offending line in mimetype_guess.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Jakub Narebski authored and Junio C Hamano committed Jun 20, 2006
1 parent 7b6511a commit 57bd4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 57bd4d3

Please sign in to comment.