mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Set wsgi url_scheme to https if configured for SSL
This commit is contained in:
parent
5448ddc580
commit
02db7ecaad
@ -84,7 +84,7 @@ def create(req, sock, client, server, cfg):
|
||||
# may not qualify the remote addr:
|
||||
# http://www.ietf.org/rfc/rfc3875
|
||||
forward = client or "127.0.0.1"
|
||||
url_scheme = "http"
|
||||
url_scheme = "https" if cfg.is_ssl else "http"
|
||||
script_name = os.environ.get("SCRIPT_NAME", "")
|
||||
|
||||
secure_headers = cfg.secure_scheme_headers
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user