Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

Fixes #271

Luc Didry7004de6aa77d
diff --git a/searx/webapp.py b/searx/webapp.py
index 6e7c8e7da..6a5387122 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -687,6 +687,10 @@ Disallow: /preferences
@app.route('/opensearch.xml', methods=['GET'])
def opensearch():
method = 'post'
+
+ if request.cookies.get('method', 'POST') == 'GET':
+ method = 'get'
+
# chrome/chromium only supports HTTP GET....
if request.headers.get('User-Agent', '').lower().find('webkit') >= 0:
method = 'get'