diff --git a/searx/webapp.py b/searx/webapp.py index 9f09f51f5..541975573 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -402,7 +402,7 @@ def autocompleter(): # return autocompleter results if request_data.get('format') == 'x-suggestions': - return Response(json.dumps([query, results]), + return Response(json.dumps([query.query, results]), mimetype='application/json') else: return Response(json.dumps(results),