From c838492d6da5f2160b78cb985f71056bc5538f67 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Wed, 30 Oct 2013 23:01:58 +0100 Subject: [PATCH] [fix] valid https checking --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,