Dear Maintainer,
* What led up to the situation?
zip -r archive.zip randomdir
file archive.zip --mime # output: application/zip
python3
import magic
f = open('/tmp/archive.zip', 'rb').read()
magic.from_buffer(f, mime=True) # output: application/octet-stream
* What was the outcome of this action?
obviously the detected file type is not correct. the file command
detects the correct mime type, but python3-magic fails. this is
reproducible for any zip file independent of file extension with
suspicion on happening with some other file types as well.
some other files, e.g. .jpg are recognized correctly, even when renamed
to false file extension name.
* What outcome did you expect instead?
correct output of mime type as in file command.