mirror of
https://github.com/searx/searx
synced 2024-12-03 07:31:22 +01:00
[fix] add py3 compatibility
This commit is contained in:
parent
1e6253ce16
commit
ad5bb994b1
@ -29,7 +29,7 @@ def request(query, params):
|
||||
params['url'] = search_url
|
||||
params['method'] = 'POST'
|
||||
params['headers']['Content-type'] = "application/json"
|
||||
params['data'] = dumps({"query": query,
|
||||
params['data'] = dumps({"query": query.decode('utf-8'),
|
||||
"searchField": "ALL",
|
||||
"sortDirection": "ASC",
|
||||
"sortOrder": "RELEVANCY",
|
||||
|
Loading…
Reference in New Issue
Block a user