mirror of
https://github.com/searxng/searxng.git
synced 2024-12-27 03:30:30 +00:00
[fix] /autocompleter: return HTTP 400 when q is empty as intent.
Fix commit c225db45c8
This commit is contained in:
parent
ecf5899153
commit
2fd582d457
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue