Skip to content

Commit a8c2bc8

Browse files
committed
Fixed bug in the rewritten mime-magic code.
- Legacy-Id: 5877
1 parent 4ed0337 commit a8c2bc8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ietf/submit/parsers/plain_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def parse_max_size(self):
3232
def parse_file_charset(self):
3333
import magic
3434
self.fd.file.seek(0)
35+
content = self.fd.file.read()
3536
if hasattr(magic, "open"):
3637
m = magic.open(magic.MAGIC_MIME)
3738
m.load()

0 commit comments

Comments
 (0)