diff --git a/src/Header/ContentType.php b/src/Header/ContentType.php index 4ed083b4..6e4a233b 100644 --- a/src/Header/ContentType.php +++ b/src/Header/ContentType.php @@ -131,7 +131,7 @@ public function toString() */ public function setType($type) { - if (! preg_match('/^[a-z-]+\/[a-z0-9.+-]+$/i', $type)) { + if (! preg_match('/^[a-z-]+\/[*a-z0-9.+-]+$/i', $type)) { throw new Exception\InvalidArgumentException(sprintf( '%s expects a value in the format "type/subtype"; received "%s"', __METHOD__,