From: Hungerburg <pc...@my...> - 2010-10-06 13:42:00
|
Am 2010-10-05 15:49, schrieb Stefan Majewski: > > Index: ExistCollection.java > =================================================================== > --- ExistCollection.java (revision 12870) > +++ ExistCollection.java (working copy) > @@ -360,6 +360,9 @@ > if (mime == null) { > mime = MimeType.BINARY_TYPE; > } > + else { > + contentType = mime.getName(); > + } > > > if (mime.isXMLType()) { I have changed ExistCollection.java in my local build to *unconditionally* set contentType = mime.getName() and sofar no problems surfaced. > if (mime == null) { > mime = MimeType.BINARY_TYPE; > } > + // overwrite the passed in contentType with a more reasonable one > + // in fact only the first of a sequence of mime-types > + contentType = mime.getName(); > No special tests performed, but EG a .html file now is "text/html" instead of "text/html,text/xml", which is what I guess 99% of all users want. Kind regards -- peter |