mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-10 10:40:57 +08:00
only set wsgi.url_scheme when EXTERNAL_PROTOCOL is set
This commit is contained in:
@@ -46,7 +46,8 @@ default_item_source = None
|
||||
|
||||
def _force_https(app):
|
||||
def wrapper(environ, start_response):
|
||||
environ["wsgi.url_scheme"] = env.external_protocol
|
||||
if env.external_protocol is not None:
|
||||
environ["wsgi.url_scheme"] = env.external_protocol
|
||||
return app(environ, start_response)
|
||||
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user