# HG changeset patch # User Marcin Kuzminski # Date 2017-03-28 18:59:19 # Node ID 9d3367807ab625d4e67cb8d7378eacb46fba6f44 # Parent d868f8bdd02dce5fb625574e86bde4bfd4094b95 files: allow to show inline pdf in browser using embedded file from vcs diff --git a/rhodecode/controllers/files.py b/rhodecode/controllers/files.py --- a/rhodecode/controllers/files.py +++ b/rhodecode/controllers/files.py @@ -388,6 +388,7 @@ class FilesController(BaseRepoController 'image/png': ('image/png', 'inline'), 'image/gif': ('image/gif', 'inline'), 'image/jpeg': ('image/jpeg', 'inline'), + 'application/pdf': ('application/pdf', 'inline'), } mimetype = file_node.mimetype