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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http.server doesn't guess n-quads, n-triples, notation3 and TriG MIME types #86324
Comments
guess_format() from lib/mimetypes.py doesn't guess correctly the following MIME types:
In these cases the default MIME type is returned: application/octet-stream |
Adding the MIME types to /etc/mime.types fixes this issue, but I'm not sure if that's the right 'fix' |
Editing /etc/mime.types is one way of customizing the types returned; another one is to make a pull request to add them to the list inside the mimetypes module. |
There was a little discussion on #67419 whether the change should also go to 3.10 and 3.9 given it's not a bugfix. Eric unearthed a similar discussion here: where R. David opted for skipping backports on the grounds that the change is a new feature. Given R. David's conservative approach (which I share), I merged this change to 3.11 alone. Unless a backwards incompatibility is demonstrated, we won't be backporting to 3.10 and 3.9. |
Thanks for pursuing this, Eric! ✨ 🍰 ✨ |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: