From: Vsevolod Stakhov Date: Mon, 6 Aug 2018 16:37:35 +0000 (+0100) Subject: [Minor] Add last '\n' as required X-Git-Tag: 1.8.0~307 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f1f676fadcf4fe650c666184317d8603dfa4214c;p=rspamd.git [Minor] Add last '\n' as required --- diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua index 771592e57..4be2c430f 100644 --- a/lualib/lua_clickhouse.lua +++ b/lualib/lua_clickhouse.lua @@ -243,9 +243,9 @@ exports.insert = function (upstream, settings, params, query, rows, http_params.no_ssl_verify = settings.no_ssl_verify http_params.user = settings.user http_params.password = settings.password - http_params.body = table.concat(fun.totable(fun.map(function(row) + http_params.body = {table.concat(fun.totable(fun.map(function(row) return row_to_tsv(row) - end), rows), '\n') + end), rows), '\n'), '\n'} http_params.log_obj = params.task or params.config if not http_params.url then