Skip to content

Commit

Permalink
issue viewvc#216: Fix test for viewable image
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpilato committed Apr 8, 2020
1 parent 7127105 commit 544d612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/viewvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def is_binary_file_mime_type(mime_type, cfg):
if mime_type:
# We require explicit handling of the web-friendly images.
# For all other types, pattern-matching is used.
if mime_type in ('image/gif', 'image/jpeg', 'image/png'):
if is_viewable_image(mime_type):
return mime_type in cfg.options.binary_mime_types
for pattern in cfg.options.binary_mime_types:
if fnmatch.fnmatch(mime_type, pattern):
Expand Down

0 comments on commit 544d612

Please sign in to comment.