Fix bug #20203: split content-type and get real mime type

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.