Better support for mime types

Nowadays there could be content-types like “text/xml; charset=utf-8
which doesn’t match to ”text/xml” at all. This splits from ; and takes
first element and does the comparison using that instead.

Atleast nginx (by default) sets this mime type for XML files.