# HG changeset patch # User Milka Kuzminski # Date 2021-03-25 20:46:25 # Node ID 23c030e17827a6da93ed8adf785dc933cc170f95 # Parent d96888907c55e362fc93a59e28e41eb95085887d largefiles: added fix for downloading largefiles without an extension in name. diff --git a/rhodecode/lib/vcs/nodes.py b/rhodecode/lib/vcs/nodes.py --- 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): """