logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: c838492d6da5f2160b78cb985f71056bc5538f67
parent: d1e8c2365ef432da55424c5e386c2a43dbac2abf
Author: asciimoo <asciimoo@gmail.com>
Date:   Wed, 30 Oct 2013 23:01:58 +0100

[fix] valid https checking

Diffstat:

searx/webapp.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,