diff options
author | bbangert <none@none> | 2006-10-30 16:37:55 -0800 |
---|---|---|
committer | bbangert <none@none> | 2006-10-30 16:37:55 -0800 |
commit | 30334e7c18ca72ae2415f9fac10cc213feb2db3f (patch) | |
tree | a851e81b5eb9d1515c1ced35c22addf56ccd347a | |
parent | dde994943413b0ff3e99dac7b8d91fd338ed23c7 (diff) | |
download | routes-30334e7c18ca72ae2415f9fac10cc213feb2db3f.tar.gz |
[svn] Added check for wsgi.url_scheme for better WSGI conformance.
--HG--
branch : trunk
-rw-r--r-- | routes/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/__init__.py b/routes/__init__.py index 4015f61..792365f 100644 --- a/routes/__init__.py +++ b/routes/__init__.py @@ -34,7 +34,7 @@ class _RequestConfig(object): store the resulting match dict in mapper_dict. """ port_info = '' - if environ.get('HTTPS'): + if environ.get('HTTPS') or environ.get('wsgi.url_scheme') == 'https': self.__shared_state.protocol = 'https' if environ.get('SERVER_PORT') != '443': port_info += ':' + environ['SERVER_PORT'] |