From: Vsevolod Stakhov Date: Thu, 21 Mar 2019 13:14:04 +0000 (+0000) Subject: [Fix] Fix ES sending logic (restore from coroutines mess) X-Git-Tag: 1.9.1~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3d293752557974fdedfec048fe95179fd70f6803;p=rspamd.git [Fix] Fix ES sending logic (restore from coroutines mess) Issue: #2808 Closes: #2808 --- diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index b6da33bf8..03462f9eb 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -96,7 +96,7 @@ local function elastic_send_data(task) end end - rspamd_http.request({ + return rspamd_http.request({ url = push_url, headers = { ['Content-Type'] = 'application/x-ndjson',