mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 21:01:01 +00:00
1ea35605d1
Sending query params over GET seems to be the only way to be able to enable autocomplete in the browser. This commit adds the necessary URL formatting to opensearch.xml. In order to identify queries coming from the URL bar (rather than an AJAX request), which requires a different JSON format and MIME type, the request headers are checked for "X-Requested-With: XMLHttpRequest" which is added by jQuery request. |
||
---|---|---|
.. | ||
__common__ | ||
courgette | ||
legacy | ||
oscar | ||
pix-art | ||
simple |