##// END OF EJS Templates
largefiles: added fix for downloading largefiles without an extension in name.
milka -
r4666:23c030e1 default
parent child Browse files
Show More
@@ -468,7 +468,7 b' class FileNode(Node):'
468 mtype, encoding = db.guess_type(self.name)
468 mtype, encoding = db.guess_type(self.name)
469
469
470 if mtype is None:
470 if mtype is None:
471 if self.is_binary:
471 if not self.is_largefile() and self.is_binary:
472 mtype = 'application/octet-stream'
472 mtype = 'application/octet-stream'
473 encoding = None
473 encoding = None
474 else:
474 else:
@@ -839,6 +839,7 b' class LargeFileNode(FileNode):'
839 self.org_path = org_path
839 self.org_path = org_path
840 self.kind = NodeKind.LARGEFILE
840 self.kind = NodeKind.LARGEFILE
841 self.alias = alias
841 self.alias = alias
842 self._content = ''
842
843
843 def _validate_path(self, path):
844 def _validate_path(self, path):
844 """
845 """
General Comments 0
You need to be logged in to leave comments. Login now