diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-10-30 23:01:58 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-10-30 23:01:58 +0100 |
| commit | c838492d6da5f2160b78cb985f71056bc5538f67 (patch) | |
| tree | b92baa2195e1b516481b2fb5e8e62a36161971f3 /searx/webapp.py | |
| parent | d1e8c2365ef432da55424c5e386c2a43dbac2abf (diff) | |
[fix] valid https checking
Diffstat (limited to 'searx/webapp.py')
| -rw-r--r-- | searx/webapp.py | 2 |
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, |