summaryrefslogtreecommitdiff
path: root/searx/poolrequests.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/poolrequests.py')
-rw-r--r--searx/poolrequests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/poolrequests.py b/searx/poolrequests.py
index b74d43a02..e2a757665 100644
--- a/searx/poolrequests.py
+++ b/searx/poolrequests.py
@@ -66,8 +66,10 @@ class SessionSinglePool(requests.Session):
def request(method, url, **kwargs):
- """same as requests/requests/api.py request(...) except it use SessionSinglePool"""
+ """same as requests/requests/api.py request(...) except it use SessionSinglePool and force proxies"""
+ global settings
session = SessionSinglePool()
+ kwargs['proxies'] = settings.get('outgoing_proxies', None)
response = session.request(method=method, url=url, **kwargs)
session.close()
return response