aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-11-19 14:57:59 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-11-19 14:57:59 +0000
commit5c836d71863a196e67a2d1c4002a1a3d4ed11ddd (patch)
treea4039ec4f1f96b650197a3675f680ad51133fe1e /lualib
parenta84c79f74f5743614fb50ba641b8bef84b43a9c8 (diff)
downloadrspamd-5c836d71863a196e67a2d1c4002a1a3d4ed11ddd.tar.gz
rspamd-5c836d71863a196e67a2d1c4002a1a3d4ed11ddd.zip
[Minor] Add `Accept` header
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_maps.lua4
1 files changed, 3 insertions, 1 deletions
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