forked from zaclys/searxng
[fix] varname
This commit is contained in:
parent
a8797839a1
commit
443af2ba83
|
@ -123,7 +123,7 @@ def search(query, request, selected_categories):
|
||||||
,headers = request_params['headers']
|
,headers = request_params['headers']
|
||||||
,hooks = dict(response=callback)
|
,hooks = dict(response=callback)
|
||||||
,cookies = request_params['cookies']
|
,cookies = request_params['cookies']
|
||||||
,timeout = settings.timeout
|
,timeout = settings.request_timeout
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
req = grequests.post(request_params['url']
|
req = grequests.post(request_params['url']
|
||||||
|
@ -131,7 +131,7 @@ def search(query, request, selected_categories):
|
||||||
,headers = request_params['headers']
|
,headers = request_params['headers']
|
||||||
,hooks = dict(response=callback)
|
,hooks = dict(response=callback)
|
||||||
,cookies = request_params['cookies']
|
,cookies = request_params['cookies']
|
||||||
,timeout = settings.timeout
|
,timeout = settings.request_timeout
|
||||||
)
|
)
|
||||||
requests.append(req)
|
requests.append(req)
|
||||||
grequests.map(requests)
|
grequests.map(requests)
|
||||||
|
|
Loading…
Reference in New Issue