- From: Anselm Baird_Smith <Anselm.Baird_Smith@sophia.inria.fr>
- Date: Fri, 25 Jul 1997 10:31:27 +0200 (MET DST)
- To: Kyle Jamieson <jamieson@MIT.EDU>
- Cc: abs@w3.org, Benoit Mahe <bmahe@w3.org>, www-jigsaw@w3.org
Kyle Jamieson writes: > Hello, > > This is from the package w3c.www.mime.*; file MimeType.java. I'm a bit > confused by the rationale you use to match types here; it seems to me that > if the types match (*** below) then we shouldn't return -1 if consequently, > the subtypes don't (**** below) ; we should instead return > MATCH_SPECIFIC_TYPE. Unfortunatelly I don't know of any standard to do mime type matching. As you point out, Jigsaw matching consider (intentionnaly, as far as I remember) that "text/plain" doesn't match "text/html" "text/*" does match "text/html" I would rather stick to that interpretation since if you're interested in text only, then you should probably match against "text/*". Moreover changes to that match method would seriously affect HTTP content negotiation (this is out of scope though) Anselm.
Received on Friday, 25 July 1997 04:31:39 UTC