pear/pear-core — pull request #9 by Smarre (2012-12-19 12:10:06+00:00)
Title: 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.