From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Thu, 5 Dec 2024 20:11:50 +0000 (+0100) Subject: Allow set gzip, keepalive and no_ssl_verify in metadata_exporter module X-Git-Tag: 3.11.0~20^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5246%2Fhead;p=thirdparty%2Frspamd.git Allow set gzip, keepalive and no_ssl_verify in metadata_exporter module --- diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua index de27a64aa5..70f9540d1d 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)