mime: properly check Content-Type even if it has parameters