Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim-plugins
Commits
8d236746
Commit
8d236746
authored
Mar 21, 2018
by
Philipp Hörist
Browse files
[preview] Fix error when no Content-Type is set
parent
e8bca2b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
url_image_preview/url_image_preview.py
View file @
8d236746
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment