diff --git a/lib/galaxy/datatypes/text.py b/lib/galaxy/datatypes/text.py index a5bdb09dcb41..f178e5ffc21d 100644 --- a/lib/galaxy/datatypes/text.py +++ b/lib/galaxy/datatypes/text.py @@ -886,9 +886,9 @@ def get_mime(self): def _yield_user_file_content(self, trans, from_dataset, filename, headers: Headers): # Override non-standard application/yaml mediatype with - # non-standard text/x-yaml, so preview is shown in preview iframe, + # text/plain, so preview is shown in preview iframe, # instead of downloading the file. - headers['content-type'] = 'text/x-yaml' + headers["content-type"] = "text/plain" return super()._yield_user_file_content(trans, from_dataset, filename, headers) def _looks_like_yaml(self, file_prefix: FilePrefix):