Skip to content
Snippets Groups Projects
Commit 8d236746 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[preview] Fix error when no Content-Type is set

parent e8bca2b2
No related branches found
No related tags found
No related merge requests found
......@@ -476,7 +476,7 @@ class Base(object):
key, iv, encrypted):
file_mime, file_size = tuple_arg
# Check if mime type is acceptable
if file_mime == '' and file_size == 0:
if (file_mime == '' and file_size == 0) or file_mime is None:
log.info("Failed to load HEAD Request for URL: '%s'"
"(see debug log for more info)", url)
# URL is already displayed
......
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