Mercurial > kallithea
changeset 8930:ed117efc9ae9 stable
middleware: fix url_scheme_variable
070b8c39736f accidentally introduced a wrong assumption that
url_scheme_variable is a bool. Fix to only check whether it has been set to
something non-empty.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 14 Sep 2022 08:47:23 +0200 |
parents | 2065fe5bab67 |
children | 33f1faa7fe04 |
files | kallithea/config/application.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/config/application.py Wed Sep 14 08:47:48 2022 +0200 +++ b/kallithea/config/application.py Wed Sep 14 08:47:23 2022 +0200 @@ -35,7 +35,7 @@ app = SimpleGit(app, config) # Enable https redirects based on HTTP_X_URL_SCHEME set by proxy - if any(asbool(config.get(x)) for x in ['url_scheme_variable', 'force_https', 'use_htsts']): + if config.get('url_scheme_variable') or asbool(config.get('force_https')) or asbool(config.get('use_htsts')): app = HttpsFixup(app, config) app = PermanentRepoUrl(app, config)