summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-30 23:01:58 +0100
committerasciimoo <asciimoo@gmail.com>2013-10-30 23:01:58 +0100
commitc838492d6da5f2160b78cb985f71056bc5538f67 (patch)
treeb92baa2195e1b516481b2fb5e8e62a36161971f3
parentd1e8c2365ef432da55424c5e386c2a43dbac2abf (diff)
[fix] valid https checking
-rw-r--r--searx/webapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 2bbaf8f86..86fd4dcfe 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -119,7 +119,7 @@ def opensearch():
# chrome/chromium only supports HTTP GET....
if request.headers.get('User-Agent', '').lower().find('webkit') >= 0:
method = 'get'
- if request.headers.get('Host', '').find('https://'):
+ if request.is_secure:
scheme = 'https'
ret = opensearch_xml.format(method=method, host=url_for('index', _external=True, _scheme=scheme))
resp = Response(response=ret,