summaryrefslogtreecommitdiffstats
path: root/lualib/lua_maps.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-24 16:34:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-24 16:34:50 +0000
commit5456e25df0d4303f0e14b84e0a090d1fae746f49 (patch)
tree390172a8e7f27d0da709cebc5e4022242797728c /lualib/lua_maps.lua
parentbf798c5fc6ad20da1c2b7a8436a27182a1b7c2e6 (diff)
downloadrspamd-5456e25df0d4303f0e14b84e0a090d1fae746f49.tar.gz
rspamd-5456e25df0d4303f0e14b84e0a090d1fae746f49.zip
[Project] Add lua_urls_compose library
Diffstat (limited to 'lualib/lua_maps.lua')
-rw-r--r--lualib/lua_maps.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lualib/lua_maps.lua b/lualib/lua_maps.lua
index c7c331fc7..77aa298e5 100644
--- a/lualib/lua_maps.lua
+++ b/lualib/lua_maps.lua
@@ -72,6 +72,10 @@ local function maybe_adjust_type(data,mtype)
{'cdb:/', 'cdb'},
}
+ if mtype == 'callback' then
+ return mtype
+ end
+
for _,t in ipairs(known_types) do
if check_prefix(t[1], t[2]) then
return data,mtype