mirror of
https://github.com/searxng/searxng.git
synced 2024-11-04 20:30:11 +01:00
[fix] /autocompleter: return HTTP 400 when q is empty as intent.
Fix commit c225db45c8
This commit is contained in:
parent
ecf5899153
commit
2fd582d457
@ -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 New Issue
Block a user