diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-24 11:13:44 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-24 11:13:44 +0000 |
commit | 09a4d1ecff0d80dbbd9ce74a5f13935370810fcc (patch) | |
tree | 0087941707fce781f6149d4a2d480f9b97dd3a81 /src/plugins/lua | |
parent | 752d619ceb5d0fb9d4e938e4f8f346ad2c1f3629 (diff) | |
download | rspamd-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.lua | 4 |
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) |