Skip to content

Commit 770e515

Browse files
Merge branch '2.8' into 3.3
* 2.8: Add application/ld+json format associated to json
2 parents 205e8ee + 1ff0762 commit 770e515

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,6 +1966,7 @@ protected static function initializeFormats()
19661966
'js' => array('application/javascript', 'application/x-javascript', 'text/javascript'),
19671967
'css' => array('text/css'),
19681968
'json' => array('application/json', 'application/x-json'),
1969+
'jsonld' => array('application/ld+json'),
19691970
'xml' => array('text/xml', 'application/xml', 'application/x-xml'),
19701971
'rdf' => array('application/rdf+xml'),
19711972
'atom' => array('application/atom+xml'),

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ public function getFormatToMimeTypeMapProvider()
372372
array('js', array('application/javascript', 'application/x-javascript', 'text/javascript')),
373373
array('css', array('text/css')),
374374
array('json', array('application/json', 'application/x-json')),
375+
array('jsonld', array('application/ld+json')),
375376
array('xml', array('text/xml', 'application/xml', 'application/x-xml')),
376377
array('rdf', array('application/rdf+xml')),
377378
array('atom', array('application/atom+xml')),

0 commit comments

Comments
 (0)