mirror of
https://github.com/searxng/searxng.git
synced 2025-08-31 23:46:49 +02:00
[enh] add option to configure proxies per engine - closes #1827
This commit is contained in:
parent
b329058c1a
commit
4a913247b2
3 changed files with 12 additions and 4 deletions
|
@ -70,6 +70,10 @@ def send_http_request(engine, request_params):
|
|||
verify=request_params['verify']
|
||||
)
|
||||
|
||||
# setting engine based proxies
|
||||
if hasattr(engine, 'proxies'):
|
||||
request_args['proxies'] = engine.proxies
|
||||
|
||||
# specific type of request (GET or POST)
|
||||
if request_params['method'] == 'GET':
|
||||
req = requests_lib.get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue