commit 1119622: Add basic auth to metadata_exporter http pusher

yo johan at nosd.in
Mon Oct 10 22:28:03 UTC 2022


Author: yo
Date: 2022-10-08 15:40:39 +0200
URL: https://github.com/rspamd/rspamd/commit/1119622452623a8c0afd97d21099198cd3799eaa (refs/pull/4300/head)

Add basic auth to metadata_exporter http pusher

---
 src/plugins/lua/metadata_exporter.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index 2bce5626a..cd225e841 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -323,6 +323,8 @@ local pushers = {
     rspamd_http.request({
       task=task,
       url=rule.url,
+      user=rule.user,
+      password=rule.password,
       body=formatted,
       callback=http_callback,
       mime_type=rule.mime_type or settings.mime_type,


More information about the Commits mailing list