From 2fd582d457bc5e4ed76b96b6157d3b529f62783b Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Mon, 21 Sep 2020 19:14:24 +0200 Subject: [PATCH] [fix] /autocompleter: return HTTP 400 when q is empty as intent. Fix commit c225db45c8a4ab466bff049216f7e0189dc1b067 --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 89cbed3b..f9133e6f 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -736,7 +736,7 @@ def autocompleter(): disabled_engines = request.preferences.engines.get_disabled() # parse query - raw_text_query = RawTextQuery(str(request.form.get('q', b'')), disabled_engines) + raw_text_query = RawTextQuery(request.form.get('q', ''), disabled_engines) # check if search query is set if not raw_text_query.getSearchQuery():