Rework mime type matching and provides specs