summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/bing.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/engines/bing.py b/searx/engines/bing.py
index 3a3112d28..a359ccdfd 100644
--- a/searx/engines/bing.py
+++ b/searx/engines/bing.py
@@ -108,6 +108,10 @@ def request(query, params):
time_ranges = {'day': '1', 'week': '2', 'month': '3', 'year': f'5_{unix_day-365}_{unix_day}'}
params['url'] += f'&filters=ex1:"ez{time_ranges[params["time_range"]]}"'
+ # in some regions where geoblocking is employed (e.g. China),
+ # www.bing.com redirects to the regional version of Bing
+ params['allow_redirects'] = True
+
return params