mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 09:19:20 +02: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:
parent
ae07f4a211
commit
c23401e9fa
9 changed files with 16 additions and 8 deletions
|
@ -75,6 +75,10 @@
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue