Re: [PATCH] gitweb: use correct mime type even if filename has multiple dots.

From: Martin Waitz <tali@admingilde.org>
Date: 2006-09-19 19:23:24
hoi :)

On Sun, Sep 17, 2006 at 01:41:40AM -0700, Junio C Hamano wrote:
>  - 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.

works perfectly, thanks.

-- 
Martin Waitz

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Tue Sep 19 19:23:43 2006

This archive was generated by hypermail 2.1.8 : 2006-09-19 19:24:30 EST