@matheusbsbs / matheus-bagliano / commits / 57bd4d3523
Fork 0

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>

Jakub Narebski committed Jun 20, 2006 at 06:19 UTC 57bd4d3523efecf60197040cad34154aff4ddf80
1 file changed +1 -1
gitweb/gitweb.cgi
+1 -1
@@ -1518,7 +1518,7 @@ sub mimetype_guess {
1518
1519 if ($mimetypes_file) {
1520 my $file = $mimetypes_file;
1521 - $file =~ m#^/# or $file = "$projectroot/$path/$file";
1521 + #$file =~ m#^/# or $file = "$projectroot/$path/$file";
1522 $mime = mimetype_guess_file($filename, $file);
1523 }
1524 $mime ||= mimetype_guess_file($filename, '/etc/mime.types');