aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-12-02 14:37:15 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-12-02 14:37:15 +0000
commit56595fc1098ee90155f6dc7d5546fc691be95c9c (patch)
tree7fcf0bdfce18cec5616bbc9592cb0c7ee4c01cff
parentd4264e6b472a3f6ad83b6e107ad69ca025c10a1b (diff)
downloadrspamd-56595fc1098ee90155f6dc7d5546fc691be95c9c.tar.gz
rspamd-56595fc1098ee90155f6dc7d5546fc691be95c9c.zip
[Minor] Try to stringify meta headers
Issue: #5237
-rw-r--r--src/plugins/lua/metadata_exporter.lua2
1 files changed, 1 insertions, 1 deletions
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