Skip to content

Commit

Permalink
[Minor] Fix checks logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 12, 2019
1 parent 0d2796b commit 72fb023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/lua/mime_types.lua
Expand Up @@ -244,7 +244,7 @@ local function check_mime_type(task)
detected = lua_magic_types[detected_ext]
end

if not ext or (detected_ext and ext ~= detected_ext) then
if detected_ext and ((not ext) or ext ~= detected_ext) then
-- Try to find extension by real content type
check_filename('detected.' .. detected_ext, detected.ct,
false, part, nil)
Expand Down

0 comments on commit 72fb023

Please sign in to comment.