mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
[mod][fix] using base_url instead of hostname in settings.py
This commit is contained in:
parent
ff0bbd3566
commit
32512856b4
2 changed files with 3 additions and 3 deletions
|
@ -165,8 +165,8 @@ def opensearch():
|
|||
method = 'get'
|
||||
if request.is_secure:
|
||||
scheme = 'https'
|
||||
if settings.hostname:
|
||||
hostname = '{0}://{1}/'.format(scheme,settings.hostname)
|
||||
if settings.base_url:
|
||||
hostname = settings.base_url
|
||||
else:
|
||||
hostname = url_for('index', _external=True, _scheme=scheme)
|
||||
ret = opensearch_xml.format(method=method, host=hostname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue