Skip to content

Difference in detected mime-type between libmagic 5.38 and 5.40 #246

Description

@shuttlesworthNEO

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions