Skip to content

Commit

Permalink
Merge pull request #12 from curtis1000/hotfix/json-mime-regex
Browse files Browse the repository at this point in the history
Improve JsonContentHandler regex matching
  • Loading branch information
shadowhand committed Mar 1, 2016
2 parents b405b6d + 71e73f1 commit 821ce40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/JsonContentHandler.php
Expand Up @@ -23,7 +23,7 @@ public function __construct($assoc = true, $maxDepth = 512, $options = 0)
*/
protected function isApplicableMimeType($mime)
{
return preg_match('~^application/([a-z.]+\+)?json$~', $mime);
return preg_match('~^application/([a-z.]+\+)?json($|;)~', $mime);
}

/**
Expand Down

0 comments on commit 821ce40

Please sign in to comment.