on master help sign in
[fix] valid https checking
commitc838492d6da5f2160b78cb985f71056bc5538f67 authorasciimoo <asciimoo@gmail.com> dateWed 30 Oct 2013, 23:01 (13 years ago) parentd1e8c23
1 file changed+1−1
searx/webapp.py+1−1
searx/webapp.py+1−1
@@ -119,7 +119,7 @@ def opensearch():
119119 # chrome/chromium only supports HTTP GET....
120120 if request.headers.get('User-Agent', '').lower().find('webkit') >= 0:
121121 method = 'get'
122− if request.headers.get('Host', '').find('https://'):
122+ if request.is_secure:
123123 scheme = 'https'
124124 ret = opensearch_xml.format(method=method, host=url_for('index', _external=True, _scheme=scheme))
125125 resp = Response(response=ret,