1
0
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:
Adam Tauber 2020-01-02 22:30:18 +01:00
parent 1e6253ce16
commit ad5bb994b1

View File

@ -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",