From 41aca9a068cbaf4e630461b844a152e7f2444548 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 9 Dec 2014 00:57:04 +0100 Subject: [PATCH] [fix] autocomplete x-suggestion --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),