diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-11-19 14:57:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-11-19 14:57:59 +0000 |
commit | 5c836d71863a196e67a2d1c4002a1a3d4ed11ddd (patch) | |
tree | a4039ec4f1f96b650197a3675f680ad51133fe1e /lualib | |
parent | a84c79f74f5743614fb50ba641b8bef84b43a9c8 (diff) | |
download | rspamd-5c836d71863a196e67a2d1c4002a1a3d4ed11ddd.tar.gz rspamd-5c836d71863a196e67a2d1c4002a1a3d4ed11ddd.zip |
[Minor] Add `Accept` header
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_maps.lua | 4 |
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 |