While running some tests I encountered a discrepancy between the expected mime type. Using libmagic 5.40 the mime type detected is application/octet-stream whereas with libmagic 5.38 the detected mime type is text/plain
Here's a sample snippet to reproduce the issue
import io, magic
buff = io.BytesIO()
buff.write(b'000000000000000000000')
buff.seek(0)
magic.from_buffer(buff.read(), mime=True)
While running some tests I encountered a discrepancy between the expected mime type. Using
libmagic 5.40the mime type detected isapplication/octet-streamwhereas withlibmagic 5.38the detected mime type istext/plainHere's a sample snippet to reproduce the issue