private function headerOnlyType($contentType)
{
if (!preg_match('!\\s*(([-\\w]+)/([-\\w\\+]+))!im', strtolower($contentType), $match)) {
return false;
}
$match[1] = strtolower(trim($match[1]));
$match[2] = strtolower(trim($match[2]));
foreach (array($match[1], $match[2]) as $mime) {
if (in_array($mime, $this->config['header_only_types'])) {
return true;
}
}
return false;
}