core: content-type is case insensitive for metadata check [GH-4369]