equal
deleted
inserted
replaced
220 # has the concept of "virtual" repositories. This is defined via REPO_NAME. |
220 # has the concept of "virtual" repositories. This is defined via REPO_NAME. |
221 # If REPO_NAME is defined, we append it to SCRIPT_NAME to form a new app |
221 # If REPO_NAME is defined, we append it to SCRIPT_NAME to form a new app |
222 # root. We also exclude its path components from PATH_INFO when resolving |
222 # root. We also exclude its path components from PATH_INFO when resolving |
223 # the dispatch path. |
223 # the dispatch path. |
224 |
224 |
225 apppath = env['SCRIPT_NAME'] |
225 apppath = env.get('SCRIPT_NAME', '') |
226 |
226 |
227 if env.get('REPO_NAME'): |
227 if env.get('REPO_NAME'): |
228 if not apppath.endswith('/'): |
228 if not apppath.endswith('/'): |
229 apppath += '/' |
229 apppath += '/' |
230 |
230 |