Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Open
Description
Symfony version(s) affected
7.4
Description
Hi there,
I noticed thatMimeTypes::getExtensions
returns an empty array withapplication/x-ndjson
mime type. However, I would expect the return array to return atleastjson
How to reproduce
You can use this file to reproduce this issue:ndjson_example.json
$mimeType = mime_content_type('ndjson_example.json');var_dump($mimeType); // string(20) "application/x-ndjson"var_dump(new MimeTypes()->getExtensions($mimeType)); // array(0) {}
You can also reproduce the issue without a file:
var_dump(new MimeTypes()->getExtensions('application/x-ndjson')); // array(0) {}
Possible Solution
No response
Additional Context
https://cdn.jsdelivr.net/gh/jshttp/mime-db/db.json doesn't seem to containapplication/x-ndjson
.
Using PHP v8.4.10