summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-05-01 10:14:47 +0200
committerAdam Tauber <asciimoo@gmail.com>2014-05-01 10:14:47 +0200
commita41c1392f072837b60c38454072e38324e2ba029 (patch)
tree295f23c335fdb2c4677260a0e8e6a233e0b70c03 /searx/webapp.py
parent44d3af9fb2482cd0df1a8ababbe2fdf27ab33172 (diff)
downloadsearxng-a41c1392f072837b60c38454072e38324e2ba029.tar.gz
searxng-a41c1392f072837b60c38454072e38324e2ba029.zip
[fix] using different opensearch url to fix chrome POST request bug
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 57734e2cf..89d288e73 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -128,6 +128,7 @@ def render(template_name, **kwargs):
return render_template(template_name, **kwargs)
+@app.route('/search', methods=['GET', 'POST'])
@app.route('/', methods=['GET', 'POST'])
def index():
"""Render index page.
@@ -392,7 +393,7 @@ def opensearch():
method = 'get'
ret = render('opensearch.xml',
- method=method,
+ opensearch_method=method,
host=get_base_url())
resp = Response(response=ret,