diff options
author | Alexandre Flament <alex@al-f.net> | 2020-09-21 19:14:24 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-09-22 11:38:37 +0200 |
commit | 2fd582d457bc5e4ed76b96b6157d3b529f62783b (patch) | |
tree | 1b71b9c7727d1ff53c8a74516b38c6b9d88e13bc /searx/webapp.py | |
parent | ecf5899153cb58b112fc2c5c745eef91fa36dd6e (diff) | |
download | searxng-2fd582d457bc5e4ed76b96b6157d3b529f62783b.tar.gz searxng-2fd582d457bc5e4ed76b96b6157d3b529f62783b.zip |
[fix] /autocompleter: return HTTP 400 when q is empty as intent.
Fix commit c225db45c8a4ab466bff049216f7e0189dc1b067
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 89cbed3be..f9133e6fe 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(): |