All -

We're still having the problem that MIME type detection from byte headers is
failing.  I'll try to look into it, but if anyone else could also take a
look, that would be great.

I'm attaching a patch that:

* adds an alternate method for determining the MIME type that calls the new
MimeUtils.getMimeType() method.
* calls the regular method and the alternate method and asserts that they
return the same result
* enables only one type of test so that the output is more manageable
* the alternate method turns the original one upside down; it's simpler to
me because if a type is found via the byte header, the other methods are not
attempted, etc.; let me know what you think.

This patch is not intended to ever be committed, but is just for review.

Thanks,
- Keith



http://www.nabble.com/file/p13352486/diag.patch diag.patch 


-- 
View this message in context: 
http://www.nabble.com/MIME-Type-Detection-from-Byte-Header-Failing-tf4673629.html#a13352486
Sent from the Apache Tika - Development mailing list archive at Nabble.com.

Reply via email to