commit 5c836d7: [Minor] Add `Accept` header

Vsevolod Stakhov vsevolod at rspamd.com
Sat Nov 19 20:28:25 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-11-19 14:57:59 +0000
URL: https://github.com/rspamd/rspamd/commit/5c836d71863a196e67a2d1c4002a1a3d4ed11ddd

[Minor] Add `Accept` header

---
 lualib/lua_maps.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lualib/lua_maps.lua b/lualib/lua_maps.lua
index 6ce3f64eb..9f633e145 100644
--- a/lualib/lua_maps.lua
+++ b/lualib/lua_maps.lua
@@ -111,7 +111,9 @@ assert(url_encode_string('? and the Mysterians') == '%3F+and+the+Mysterians')
 local function query_external_map(map_config, upstreams, key, callback, task)
   local http_method = (map_config.method == 'body' or map_config.method == 'form') and 'POST' or 'GET'
   local upstream = upstreams:get_upstream_round_robin()
-  local http_headers = {}
+  local http_headers = {
+    ['Accept'] = '*/*'
+  }
   local http_body = nil
   local url = map_config.backend
 


More information about the Commits mailing list