From 08c13daf85311aa1799b8ea9e0990fab058c2b7f Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Thu, 18 Jun 2020 19:37:14 +0200 Subject: [PATCH] [enh] update opensearch.xml to match major search engines opensearch.xml --- searx/templates/__common__/opensearch.xml | 20 +++++--------------- searx/webapp.py | 2 +- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/searx/templates/__common__/opensearch.xml b/searx/templates/__common__/opensearch.xml index 15d3eb792..27634245f 100644 --- a/searx/templates/__common__/opensearch.xml +++ b/searx/templates/__common__/opensearch.xml @@ -6,23 +6,13 @@ {{ urljoin(host, url_for('static', filename='img/favicon.png')) }} searx metasearch {% if opensearch_method == 'get' %} - - {% if autocomplete %} - - - - - {% endif %} + {% else %} - + - {% if autocomplete %} - - - - - - {% endif %} + {% endif %} + {% if autocomplete %} + {% endif %} diff --git a/searx/webapp.py b/searx/webapp.py index 68be25584..35495a0ff 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -949,7 +949,7 @@ def opensearch(): resp = Response(response=ret, status=200, - mimetype="text/xml") + mimetype="application/opensearchdescription+xml") return resp