W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1997

Possible bug in w3c.www.mime.MimeType.match(...), or am I misinterpreting?

From: Anselm Baird_Smith <Anselm.Baird_Smith@sophia.inria.fr>
Date: Fri, 25 Jul 1997 10:31:27 +0200 (MET DST)
Message-Id: <199707250831.KAA09423@www43.inria.fr>
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

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)

Received on Friday, 25 July 1997 04:31:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:31 UTC