From 1df8822469ec3f47a33c57bb60743bae5e76ee88 Mon Sep 17 00:00:00 2001 From: Milka Kuzminski Date: Thu, 25 Mar 2021 21:46:25 +0100 Subject: [PATCH] largefiles: added fix for downloading largefiles without an extension in name. --- rhodecode/lib/vcs/nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rhodecode/lib/vcs/nodes.py b/rhodecode/lib/vcs/nodes.py index 1de7b3e5..c8832c9c 100644 --- a/rhodecode/lib/vcs/nodes.py +++ b/rhodecode/lib/vcs/nodes.py @@ -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): """