Fixed bug in the rewritten mime-magic code.
- Legacy-Id: 5877
This commit is contained in:
parent
4ed0337cae
commit
a8c2bc80e9
|
@ -32,6 +32,7 @@ class PlainParser(FileParser):
|
|||
def parse_file_charset(self):
|
||||
import magic
|
||||
self.fd.file.seek(0)
|
||||
content = self.fd.file.read()
|
||||
if hasattr(magic, "open"):
|
||||
m = magic.open(magic.MAGIC_MIME)
|
||||
m.load()
|
||||
|
|
Loading…
Reference in a new issue