From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjemli at gmail.com (Lars Hjemli) Date: Wed, 22 Jun 2011 23:01:00 +0200 Subject: mime types In-Reply-To: <4E023E2F.7050702@hupie.com> References: <4E023E2F.7050702@hupie.com> Message-ID: On Wed, Jun 22, 2011 at 21:10, Ferry Huberts wrote: > Instead of hardcoding the mime types cgit knows about, why not read > /etc/mime.types when a mime type is needed? Yeah, an option to specify the path to a (httpd style) mime.types file and then looking into this file when a mimetype lookup is needed (i.e. in ui-plain.c) sounds like a good idea. -- larsh