Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Mime] Fix: add application/x-ndjson MIME type extension#61154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:7.4
Are you sure you want to change the base?
Conversation
carsonbot commentedJul 18, 2025
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
Hi,This is my first PR to Symfony. I’ve added support for |
- 🧩 [Symfony PR #61154](symfony/symfony#61154) – Added MIME type support for `application/x-ndjson` in Symfony’s Mime component, improving JSON stream handling.
- 🧩 [Symfony PR #61154](symfony/symfony#61154) – Added MIME type support for `application/x-ndjson` in Symfony’s Mime component, improving JSON stream handling.
- 🧩 [Symfony PR #61154](symfony/symfony#61154) – Added MIME type support for `application/x-ndjson` in Symfony’s Mime component, improving JSON stream handling.
@Aryanverma19 I couldn't find Is it possible you added it manually? If so, just a heads-up: that might not be the best idea, since it will be removed each time the file is regenerated. The best approach would be to wait until it’s properly integrated in an "official" database... but as far as I can see, that process hasn’t started yet. So, as@MatTheCat mentioned inthe original issue, you can add it directly in your app for now as a temporary workaround. |
This PR adds support for the
application/x-ndjson
MIME type in the Symfony Mime component.🔹What it does and why it's needed
NDJSON (Newline-Delimited JSON) is commonly used for streaming JSON objects. Adding this MIME type helps Symfony applications better identify and process such data.
🔹How it works
The new MIME type was added to
MimeTypes.php
via the official internal scriptupdate_mime_types.php
.✅ No breaking changes.
📄 No changelog entry required as this is a minor internal enhancement.