diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-07 14:54:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-07 14:54:53 +0100 |
commit | 043e80725dbacdae4c9589e2558f4b33faf5776a (patch) | |
tree | f8208bdc181e952105e3ed7344b8e8256f0cce60 /lualib | |
parent | f7e05d2cca6f179a2f3f44175de2b7810458ae25 (diff) | |
download | rspamd-043e80725dbacdae4c9589e2558f4b33faf5776a.tar.gz rspamd-043e80725dbacdae4c9589e2558f4b33faf5776a.zip |
[Minor] Fix various issues with the clickhouse support
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_clickhouse.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua index 4be2c430f..37c9ebb7a 100644 --- a/lualib/lua_clickhouse.lua +++ b/lualib/lua_clickhouse.lua @@ -243,9 +243,10 @@ 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.method = 'POST' http_params.body = {table.concat(fun.totable(fun.map(function(row) return row_to_tsv(row) - end), rows), '\n'), '\n'} + end, rows)), '\n'), '\n'} http_params.log_obj = params.task or params.config if not http_params.url then |