diff options
author | bbangert <none@none> | 2006-02-15 07:49:33 -0800 |
---|---|---|
committer | bbangert <none@none> | 2006-02-15 07:49:33 -0800 |
commit | 0958bf71ad8411d452cab9762ec7c3b83c8dea83 (patch) | |
tree | 25ce642c7a27d55aeb1d9fb904b612a181568dfa /routes/__init__.py | |
parent | 1653f264f46f3e6f2dfecd084ba8444e2dd3680b (diff) | |
download | routes-0958bf71ad8411d452cab9762ec7c3b83c8dea83.tar.gz |
[svn] Ensure SCRIPT_NAME is carried through and used, added unit tets for static route tests
--HG--
branch : trunk
Diffstat (limited to 'routes/__init__.py')
-rw-r--r-- | routes/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/__init__.py b/routes/__init__.py index dcdea53..711c40b 100644 --- a/routes/__init__.py +++ b/routes/__init__.py @@ -40,6 +40,8 @@ class _RequestConfig(object): self.__shared_state.protocol = 'https' else: self.__shared_state.protocol = 'http' + if hasattr(self, 'mapper'): + self.mapper.environ = environ if 'PATH_INFO' in environ and hasattr(self, 'mapper'): mapper = self.mapper path = environ['PATH_INFO'] |