Re: [PATCH] gitweb: use correct mime type even if filename has multiple dots.
hoi :)
On Sun, Sep 17, 2006 at 01:41:40AM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> - read in mime.types, sort the entries with length of the
> suffixes (longer first);
>
> - try matching the suffixes from longer to shorter and pick the
> first match.
>
> Without that, you would not be able to cope with a /etc/mime.types
> that looks like this, no?
>
> application/a a
> application/b b.a
>
> Perhaps something like the attached.
--
Martin Waitz