Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 770e515

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

File tree

2 files changed

+2
-0
lines changed
Filter options

2 files changed

+2
-0
lines changed

‎src/Symfony/Component/HttpFoundation/Request.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Request.php
+1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/RequestTest.php
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.