From: Vsevolod Stakhov Date: Sat, 12 Aug 2017 21:47:31 +0000 (+0100) Subject: [Feature] Add gzip compression support for clickhouse module X-Git-Tag: 1.7.0~725 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74ea4a8a6f71e6067d9d8e7ab7b7e50e99eb38ed;p=thirdparty%2Frspamd.git [Feature] Add gzip compression support for clickhouse module --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 77b10a51bd..87738c8afe 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -55,6 +55,7 @@ local settings = { from_tables = nil, enable_symbols = false, use_https = false, + use_gzip = true, } local clickhouse_schema = { @@ -262,6 +263,7 @@ local function clickhouse_send_data(task) url = connect_prefix .. settings['server'], body = body, callback = http_cb, + gzip = settings.use_gzip, mime_type = 'text/plain', timeout = settings['timeout'], }) then