summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paste/urlparser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py
index 6da96f8..10a0364 100644
--- a/paste/urlparser.py
+++ b/paste/urlparser.py
@@ -196,7 +196,10 @@ class URLParser(object):
environ,
'404 Not Found',
'The resource at %s could not be found'
- % wsgilib.construct_url(environ),
+ '<!-- SCRIPT_NAME=%r; PATH_INFO=%r; looking in %r -->'
+ % (wsgilib.construct_url(environ),
+ environ.get('SCRIPT_NAME'), environ.get('PATH_INFO'),
+ self.directory),
debug_message=debug_message)
start_response(status, headers)
return [body]