You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows 10 a plain text buffer is classified as application/octet-stream which is indicative of a binary file (I think). Ubuntu Linux is correctly identifying as "text/plain".
Python3.9, python-magic-bin as the driver for magiclib
How to reproduce
content="Bunch of fake content"*8192magic=Magic(mime=True)
mimetype=magic.from_buffer(content[0:8192]) # Index to replicate my environment
The text was updated successfully, but these errors were encountered:
On Windows 10 a plain text buffer is classified as application/octet-stream which is indicative of a binary file (I think). Ubuntu Linux is correctly identifying as "text/plain".
Python3.9, python-magic-bin as the driver for magiclib
How to reproduce
The text was updated successfully, but these errors were encountered: