Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cafd5fa commit 0d5643bCopy full SHA for 0d5643b
src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php
@@ -275,7 +275,7 @@ public function getContentType()
275
276
public function isJsonRequest()
277
{
278
- return 1 === preg_match('{^application/[a-z]*?\+?json$}i', $this->data['request_headers']['content-type']);
+ return 1 === preg_match('{^application/(?:\w+\++)*json$}i', $this->data['request_headers']['content-type']);
279
}
280
281
public function getStatusText()
0 commit comments