mbrubeck / tree_magic

Determines the MIME type of a file by traversing a filetype tree.
MIT License
34 stars 9 forks source link

Text files returning application/octet-stream #16

Open BBaoVanC opened 1 year ago

BBaoVanC commented 1 year ago

Some of my text files are being guessed as octet-stream. I can't really tell what's causing it, I'm hoping someone else knows how I can debug this.

mbrubeck commented 7 months ago

One possibility is that the file contains an ASCII "nul" (zero) byte.

If anyone can share a reproducible test case, that would help debug the issue.

(P.S. Sorry for missing this report previously.)