Browse Source

[fix] add py3 compatibility

Adam Tauber 5 years ago
parent
commit
ad5bb994b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/scanr_structures.py

+ 1 - 1
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",