commit 93430bb: [Minor] Bimi: Fix Redis storage
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Dec 13 14:28:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-12-13 14:25:43 +0000
URL: https://github.com/rspamd/rspamd/commit/93430bbe86b810010cdbac230336eaeb5cc9cfa9 (HEAD -> master)
[Minor] Bimi: Fix Redis storage
---
src/plugins/lua/bimi.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/plugins/lua/bimi.lua b/src/plugins/lua/bimi.lua
index e7e2527e4..d8b36d030 100644
--- a/src/plugins/lua/bimi.lua
+++ b/src/plugins/lua/bimi.lua
@@ -184,7 +184,8 @@ local function make_helper_request(task, domain, record, redis_server)
true, -- is write
redis_set_cb, --callback
'PSETEX', -- command
- {redis_key, tostring(settings.redis_min_expiry * 1000.0), d.content})
+ {redis_key, tostring(settings.redis_min_expiry * 1000.0),
+ ucl.to_format(d, "json-compact")})
if not ret then
rspamd_logger.warnx(task, 'cannot make request to Redis when storing image; domain %s',
More information about the Commits
mailing list