summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paste/urlparser.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py
index 41d1877..0c333a1 100644
--- a/paste/urlparser.py
+++ b/paste/urlparser.py
@@ -131,7 +131,7 @@ class URLParser(object):
self.init_module.urlparser_hook(environ)
orig_path_info = environ['PATH_INFO']
orig_script_name = environ['SCRIPT_NAME']
- application = self.find_application(environ)
+ application, filename = self.find_application(environ)
if not application:
if (self.init_module
and getattr(self.init_module, 'not_found_hook', None)
@@ -190,10 +190,9 @@ class URLParser(object):
else:
filename = self.find_file(environ, name)
if filename is None:
- application = None
+ return None, filename
else:
- application = self.get_application(environ, filename)
- return application
+ return self.get_application(environ, filename), filename
def not_found(self, environ, start_response, debug_message=None):
status, headers, body = wsgilib.error_response(