mirror of
https://github.com/searxng/searxng.git
synced 2024-12-23 09:46:31 +00:00
[fix] fix kickass engine
thanks @Cqoicebordel in #144: https://github.com/asciimoo/searx/pull/144#issuecomment-67036903
This commit is contained in:
parent
e047d22046
commit
70fc1002db
2 changed files with 6 additions and 2 deletions
|
@ -33,6 +33,9 @@ def request(query, params):
|
||||||
params['url'] = search_url.format(search_term=quote(query),
|
params['url'] = search_url.format(search_term=quote(query),
|
||||||
pageno=params['pageno'])
|
pageno=params['pageno'])
|
||||||
|
|
||||||
|
# FIX: SSLError: hostname 'kickass.so' doesn't match either of '*.kickass.to', 'kickass.to'
|
||||||
|
params['verify'] = False
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ def threaded_requests(requests):
|
||||||
# get default reqest parameter
|
# get default reqest parameter
|
||||||
def default_request_params():
|
def default_request_params():
|
||||||
return {
|
return {
|
||||||
'method': 'GET', 'headers': {}, 'data': {}, 'url': '', 'cookies': {}}
|
'method': 'GET', 'headers': {}, 'data': {}, 'url': '', 'cookies': {}, 'verify': True}
|
||||||
|
|
||||||
|
|
||||||
# create a callback wrapper for the search engine results
|
# create a callback wrapper for the search engine results
|
||||||
|
@ -469,7 +469,8 @@ class Search(object):
|
||||||
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=engine.timeout
|
timeout=engine.timeout,
|
||||||
|
verify=request_params['verify']
|
||||||
)
|
)
|
||||||
|
|
||||||
# specific type of request (GET or POST)
|
# specific type of request (GET or POST)
|
||||||
|
|
Loading…
Reference in a new issue