mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
[fix] simple theme: fix autocomplete
AJAX requests send the X-Requested-With HTTP header, so searx.webapp.autocompleter returns the results with the expected data format. Related to #2127 Close #2203
This commit is contained in:
@@ -1531,6 +1531,10 @@ module.exports = AutoComplete;
|
||||
Url: "./autocompleter",
|
||||
EmptyMessage: searx.no_item_found,
|
||||
HttpMethod: searx.method,
|
||||
HttpHeaders: {
|
||||
"Content-type": "application/x-www-form-urlencoded",
|
||||
"X-Requested-With": "XMLHttpRequest"
|
||||
},
|
||||
MinChars: 4,
|
||||
Delay: 300,
|
||||
}, "#" + qinput_id);
|
||||
|
||||
Reference in New Issue
Block a user