Re: Mime types

2018-11-01 Thread Rémy Maucherat
On Thu, Nov 1, 2018 at 2:34 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Why bother even doing that? File-extension mapping is a poor way to > perform file-type detection (in fact, it is NOT file type detection), > but the spec mandates it, so we are stuck. > > But why bother pr

Re: Mime types

2018-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rémy, On 10/31/18 12:37, Rémy Maucherat wrote: > There are two main contraptions in Tomcat that do (badly ...) > extension to mime type mapping: the shared web.xml and some > hardcoded stuff in startup.Tomcat. It would probably be good to unify all

Re: Mime types

2018-11-01 Thread Rainer Jung
Am 31.10.2018 um 20:15 schrieb Konstantin Kolinko: ср, 31 окт. 2018 г. в 19:38, Rémy Maucherat : ... And then all the badly maintained content from web.xml and the Tomcat class can be deleted. Comments ? 1. "badly maintained content from web.xml" Do not call them "bad". AFAIK, Those are sy

Re: Mime types

2018-10-31 Thread Rémy Maucherat
On Wed, Oct 31, 2018 at 10:30 PM Igal Sapir wrote: > >> Unless DefaultServlet behaviour is fixed, enabling probeContentType is > >> likely to break my configurations. > > How about allowing to remove a Mime type by mapping it to an empty > string? That way you would only need to override that on

Re: Mime types

2018-10-31 Thread Igal Sapir
On 10/31/2018 12:50 PM, Rémy Maucherat wrote: On Wed, Oct 31, 2018 at 8:16 PM Konstantin Kolinko wrote: ср, 31 окт. 2018 г. в 19:38, Rémy Maucherat : Hi, There are two main contraptions in Tomcat that do (badly ...) extension tomime type mapping: the shared web.xml and some hardcoded stuff

Re: Mime types

2018-10-31 Thread Rémy Maucherat
On Wed, Oct 31, 2018 at 8:16 PM Konstantin Kolinko wrote: > ср, 31 окт. 2018 г. в 19:38, Rémy Maucherat : > > > > Hi, > > > > There are two main contraptions in Tomcat that do (badly ...) extension > to > > mime type mapping: the shared web.xml and some hardcoded stuff in > > startup.Tomcat. > >

Re: Mime types

2018-10-31 Thread Konstantin Kolinko
ср, 31 окт. 2018 г. в 19:38, Rémy Maucherat : > > Hi, > > There are two main contraptions in Tomcat that do (badly ...) extension to > mime type mapping: the shared web.xml and some hardcoded stuff in > startup.Tomcat. > > While we should obviously have support for user configured mime types in > w