Skip to content
Snippets Groups Projects
Commit feaf6f49 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

fix: Preview: Allow manual download for all mime types

Fixes #11044
parent d4eb4a35
No related branches found
No related tags found
No related merge requests found
......@@ -428,7 +428,7 @@ def _on_content_sniffed(self,
preview.mime_type = type_
preview.file_size = file_size
if type_ not in ALLOWED_MIME_TYPES:
if type_ not in ALLOWED_MIME_TYPES and not force:
log.info('Not an allowed content type: %s, %s', type_, uri)
session.cancel_message(message, Soup.Status.CANCELLED)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment