summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-02-07 03:15:34 +0100
committerasciimoo <asciimoo@gmail.com>2014-02-07 03:15:34 +0100
commit599c801ecdc038db6ba7f6228f28f124b90b1ccd (patch)
treea20a36648cd295780951938b7fcae04f048efff6
parent9eb31c01868ee9d0cf7f5403cb1dd38364d5da6b (diff)
downloadsearxng-599c801ecdc038db6ba7f6228f28f124b90b1ccd.tar.gz
searxng-599c801ecdc038db6ba7f6228f28f124b90b1ccd.zip
[mod] index rendering
-rw-r--r--searx/webapp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 5d5ac2187..8c3cfe4a7 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -103,6 +103,9 @@ def index():
Supported outputs: html, json, csv, rss.
"""
+ if not request.args and not request.form:
+ return render('index.html')
+
try:
search = Search(request)
except: