summaryrefslogtreecommitdiff
path: root/searx/engines/scanr_structures.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-01-02 22:30:18 +0100
committerAdam Tauber <asciimoo@gmail.com>2020-01-02 22:30:18 +0100
commitad5bb994b1cff56c4f021f88bfa62f38055f1416 (patch)
tree9861ec908846d324c66e4f38eafefc1fccb843a8 /searx/engines/scanr_structures.py
parent1e6253ce16346fc6f439a07211b56770d06ba225 (diff)
downloadsearxng-ad5bb994b1cff56c4f021f88bfa62f38055f1416.tar.gz
searxng-ad5bb994b1cff56c4f021f88bfa62f38055f1416.zip
[fix] add py3 compatibility
Diffstat (limited to 'searx/engines/scanr_structures.py')
-rw-r--r--searx/engines/scanr_structures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/scanr_structures.py b/searx/engines/scanr_structures.py
index 72fd2b3c9..7208dcb70 100644
--- a/searx/engines/scanr_structures.py
+++ b/searx/engines/scanr_structures.py
@@ -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",