largefiles: added fix for downloading largefiles without an extension in name.

This commit is contained in:
Milka Kuzminski 2021-03-25 21:46:25 +01:00
parent 0ab0b3cbab
commit 1df8822469

View file

@ -468,7 +468,7 @@ class FileNode(Node):
mtype, encoding = db.guess_type(self.name)
if mtype is None:
if self.is_binary:
if not self.is_largefile() and self.is_binary:
mtype = 'application/octet-stream'
encoding = None
else:
@ -839,6 +839,7 @@ class LargeFileNode(FileNode):
self.org_path = org_path
self.kind = NodeKind.LARGEFILE
self.alias = alias
self._content = ''
def _validate_path(self, path):
"""