Skip to content

python-magic Incorrectly Classifies HTML as text/plain #207 #208

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Luis-manzur
Copy link

This pull request introduces a new feature to improve MIME type detection for HTML content in the extract_extension function and updates the CHANGELOG.md to document this change.

MIME Type Detection Enhancements:

  • doctor/views.py: Added logic to override the MIME type to text/html if the file content contains HTML tags (e.g., <html> or <div>), ensuring more accurate content type detection.

Documentation Updates:

  • CHANGELOG.md: Added an entry under the "Coming up" section to document the new MIME type override feature for HTML content detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants