ModeShape/modeshape — pull request #530 by rhauch (2012-09-13 23:11:20+00:00)
Title: MODE-1634 Added new IANA MIME type for JCR CND files

Added the 'text/jcr-cnd' MIME type to the extension-based MIME type detector. Unfortunately, the Aperture- and ExtensionBased- detectors come up with different MIME types for CND files, so I changed the MimeTypeDetectors to choose between the "best" of multiple MIME types. Currently, that logic chooses a more specific MIME type over less-specific and generic MIME types (e.g., "text/plain" or "application/octet-stream").

Several tests needed to be adjusted to change expected results.