From 56595fc1098ee90155f6dc7d5546fc691be95c9c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Dec 2024 14:37:15 +0000 Subject: [Minor] Try to stringify meta headers Issue: #5237 --- src/plugins/lua/metadata_exporter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua index e97dc8664..de27a64aa 100644 --- a/src/plugins/lua/metadata_exporter.lua +++ b/src/plugins/lua/metadata_exporter.lua @@ -325,7 +325,7 @@ local pushers = { if type(v) == 'table' then hdrs[pfx .. k] = ucl.to_format(v, 'json-compact') else - hdrs[pfx .. k] = rspamd_util.mime_header_encode(v) + hdrs[pfx .. k] = rspamd_util.mime_header_encode(tostring(v) or '') end end end -- cgit v1.2.3