Skip to content
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

Python-magic reporting inaccurate MIME types #75

Closed
perpetual-hydrofoil opened this issue Mar 11, 2015 · 3 comments
Closed

Python-magic reporting inaccurate MIME types #75

perpetual-hydrofoil opened this issue Mar 11, 2015 · 3 comments

Comments

@perpetual-hydrofoil
Copy link

Python-magic is sometimes providing incorrect values for HTML and CSS files (among others). Original downstream issue and code to reproduce: s3tools/s3cmd#198 (comment)

Does this look like an upstream (libmagic) bug, possibly w/ Debian/Ubuntu packaging?

@traviscollins
Copy link

I believe it is an upstream bug.

[root@localhost css]# file -i main-style.css
main-style.css: text/x-c++; charset=us-ascii
[root@ localhost css]# cat /etc/redhat-release
CentOS release 6.6 (Final)

@perpetual-hydrofoil
Copy link
Author

Good catch, and across distributions (Ubuntu, CentOS).

New bug: https://github.com/threatstack/libmagic/issues/1

@ahupp
Copy link
Owner

ahupp commented Mar 11, 2015

Yeah, looks like a libmagic issue.

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

No branches or pull requests

3 participants