manage https scheme without relying only on wsgi info

This commit is contained in:
Michele Comitini committed 2013-02-09 15:06:33 +01:00
1 parent 211462ecbc
commit 33ada924e8
1 file changed
+4 -1
@@ -107,7 +107,10 @@ server for requests. It can be used for the optional"scope" parameters for Face
if not http_host: if not http_host:
http_host = r.env.http_host http_host = r.env.http_host
url_scheme = r.env.wsgi_url_scheme if r.env.https == 'on':
url_scheme = 'https'
else:
url_scheme = r.env.wsgi_url_scheme
if next: if next:
path_info = next path_info = next
else: else: