From 93430bbe86b810010cdbac230336eaeb5cc9cfa9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 Dec 2021 14:25:43 +0000 Subject: [PATCH] [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', -- 2.39.5