summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-24 11:13:44 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-24 11:13:44 +0000
commit09a4d1ecff0d80dbbd9ce74a5f13935370810fcc (patch)
tree0087941707fce781f6149d4a2d480f9b97dd3a81 /src/plugins/lua
parent752d619ceb5d0fb9d4e938e4f8f346ad2c1f3629 (diff)
downloadrspamd-09a4d1ecff0d80dbbd9ce74a5f13935370810fcc.tar.gz
rspamd-09a4d1ecff0d80dbbd9ce74a5f13935370810fcc.zip
[Minor] Move mime types out of the lua_mime API
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/mime_types.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 9f6e4f330..627c27f59 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -23,7 +23,7 @@ local logger = require "rspamd_logger"
local lua_util = require "lua_util"
local rspamd_util = require "rspamd_util"
local lua_maps = require "lua_maps"
-local lua_mime = require "lua_mime"
+local lua_mime_types = require "lua_mime_types"
local lua_magic_types = require "lua_magic/types"
local fun = require "fun"
@@ -570,7 +570,7 @@ if opts then
end
-- Add all extensions
- for _,pair in ipairs(lua_mime.full_extensions_map) do
+ for _,pair in ipairs(lua_mime_types.full_extensions_map) do
local ext, ct = pair[1], pair[2]
if not settings.extension_map[ext] then
change_extension_map_entry(ext, ct, settings.other_extensions_mult)