aahancoc / tree_magic

Determines the MIME type of a file by traversing a filetype tree.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tree_magic misidentifies an rtf as an application/octet-stream

compenguy opened this issue · comments

Attached is misidentified_rtf.zip, which tree_magic 0.2.0 misidentifies as application/octet-stream, when application/rtf is expected.

Unix "file" command, as tested on Ubuntu, correctly identifies it as "Rich Text Format data, version 1, ANSI".