8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b94dde commit d21f2c2Copy full SHA for d21f2c2
src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php
@@ -273,14 +273,9 @@ public function getContentType()
273
return $this->data['content_type'];
274
}
275
276
- public function getRequestContentType()
277
- {
278
- return $this->data['request_headers']['content-type'];
279
- }
280
-
281
public function isRequestJSON()
282
{
283
- return 1 === preg_match('{^application/[a-z]*?\+?json$}i', $this->getRequestContentType());
+ return 1 === preg_match('{^application/[a-z]*?\+?json$}i', $this->data['request_headers']['content-type']);
284
285
286
public function getStatusText()
0 commit comments