Closed shuttlesworthNEO closed 3 years ago
python-magic is a wrapper around the underlying libmagic implementation. libmagic often changes detection rules to fix bugs etc.
If you believe this is a bug, you can report it here: https://bugs.astron.com/my_view_page.php
Thank you for pointing out @ahupp! Looks similar to https://bugs.astron.com/view.php?id=180#c3602
While running some tests I encountered a discrepancy between the expected mime type. Using
libmagic 5.40
the mime type detected isapplication/octet-stream
whereas withlibmagic 5.38
the detected mime type istext/plain
Here's a sample snippet to reproduce the issue