From 5c836d71863a196e67a2d1c4002a1a3d4ed11ddd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 19 Nov 2022 14:57:59 +0000 Subject: [PATCH] [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 -- 2.39.5