aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-12-06 17:06:19 +0600
committerGitHub <noreply@github.com>2024-12-06 17:06:19 +0600
commit30407b58a2f7b48f00cd6f6de84d0b8a6cdc2e5c (patch)
tree157b749549b28b0c35899cd517e547183a986d68 /src
parent19d20d7afe3e47a9df6f2fc89a551bce30ac6f0c (diff)
parentf833e026d20c653dbd16933c4a05ba8c7b30fb90 (diff)
downloadrspamd-30407b58a2f7b48f00cd6f6de84d0b8a6cdc2e5c.tar.gz
rspamd-30407b58a2f7b48f00cd6f6de84d0b8a6cdc2e5c.zip
Merge pull request #5246 from dragoangel/patch-8
Allow set gzip, keepalive and no_ssl_verify in metadata_exporter module
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/metadata_exporter.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index de27a64aa..70f9540d1 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -65,6 +65,9 @@ Action: $action
Score: $score
Symbols: $symbols]],
timeout = 5.0,
+ gzip = false,
+ keepalive = false,
+ no_ssl_verify = false,
}
local function get_general_metadata(task, flatten, no_content)
@@ -340,6 +343,9 @@ local pushers = {
mime_type = rule.mime_type or settings.mime_type,
headers = hdrs,
timeout = rule.timeout or settings.timeout,
+ gzip = rule.gzip or settings.gzip,
+ keepalive = rule.keepalive or settings.keepalive,
+ no_ssl_verify = rule.no_ssl_verify or settings.no_ssl_verify,
})
end,
send_mail = function(task, formatted, rule, extra)