mirror of
https://github.com/searxng/searxng.git
synced 2024-09-12 16:30:33 +02:00
Fix query encoding
This commit is contained in:
parent
b0d42e8cf9
commit
2733a92383
@ -23,7 +23,7 @@ number_of_results = 5
|
|||||||
# Doku is OpenSearch compatible
|
# Doku is OpenSearch compatible
|
||||||
base_url = 'http://localhost:8090'
|
base_url = 'http://localhost:8090'
|
||||||
search_url = '/?do=search'\
|
search_url = '/?do=search'\
|
||||||
'&id={query}'
|
'&{query}'
|
||||||
# TODO '&startRecord={offset}'\
|
# TODO '&startRecord={offset}'\
|
||||||
# TODO '&maximumRecords={limit}'\
|
# TODO '&maximumRecords={limit}'\
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ search_url = '/?do=search'\
|
|||||||
def request(query, params):
|
def request(query, params):
|
||||||
|
|
||||||
params['url'] = base_url +\
|
params['url'] = base_url +\
|
||||||
search_url.format(query=urlencode({'query': query}))
|
search_url.format(query=urlencode({'id': query}))
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user