]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix ES sending logic (restore from coroutines mess)
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Mar 2019 13:14:04 +0000 (13:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Mar 2019 13:14:23 +0000 (13:14 +0000)
Issue: #2808
Closes: #2808
src/plugins/lua/elastic.lua

index b6da33bf89a55c9db10f74d4186bb93c4b9ddfb8..03462f9ebf4c2d6eefcb50ad8f33294e20bc3235 100644 (file)
@@ -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',