summaryrefslogtreecommitdiff
path: root/searx/search/processors
diff options
context:
space:
mode:
Diffstat (limited to 'searx/search/processors')
-rw-r--r--searx/search/processors/online.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py
index d79edd542..df0ab8c21 100644
--- a/searx/search/processors/online.py
+++ b/searx/search/processors/online.py
@@ -73,11 +73,15 @@ class OnlineProcessor(EngineProcessor):
if max_redirects:
request_args['max_redirects'] = max_redirects
+ # allow_redirects
+ if 'allow_redirects' in params:
+ request_args['allow_redirects'] = params['allow_redirects']
+
# soft_max_redirects
soft_max_redirects = params.get('soft_max_redirects', max_redirects or 0)
# raise_for_status
- request_args['raise_for_httperror'] = params.get('raise_for_httperror', False)
+ request_args['raise_for_httperror'] = params.get('raise_for_httperror', True)
# specific type of request (GET or POST)
if params['method'] == 'GET':