summaryrefslogtreecommitdiffstats
path: root/lualib/lua_clickhouse.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-06 17:37:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-06 18:00:34 +0100
commitf1f676fadcf4fe650c666184317d8603dfa4214c (patch)
tree6b694820294e7f64deff407b698dfbe028cd9c26 /lualib/lua_clickhouse.lua
parenta59fb5bf8b4d6ee0900d3c74286d46e30ed2b560 (diff)
downloadrspamd-f1f676fadcf4fe650c666184317d8603dfa4214c.tar.gz
rspamd-f1f676fadcf4fe650c666184317d8603dfa4214c.zip
[Minor] Add last '\n' as required
Diffstat (limited to 'lualib/lua_clickhouse.lua')
-rw-r--r--lualib/lua_clickhouse.lua4
1 files changed, 2 insertions, 2 deletions
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