summaryrefslogtreecommitdiff
path: root/repoze/bfg/router.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-15 01:22:49 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-15 01:22:49 +0000
commit0f5bf32309f8f94c8c24f558b7fae12f05c4514c (patch)
treef1d91a0ac126a7279360f57900d525fd5c18e7ee /repoze/bfg/router.py
parent1216ad50c697235be1cbe9547b91140b6867c5c1 (diff)
downloadpyramid-0f5bf32309f8f94c8c24f558b7fae12f05c4514c.tar.gz
pyramid-0f5bf32309f8f94c8c24f558b7fae12f05c4514c.tar.bz2
pyramid-0f5bf32309f8f94c8c24f558b7fae12f05c4514c.zip
- Make 404 responses slightly cheaper by showing
``environ["PATH_INFO"]`` on the notfound result page rather than the fullly computed URL.
Diffstat (limited to 'repoze/bfg/router.py')
-rw-r--r--repoze/bfg/router.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py
index 65044b6e1..07f0ca43f 100644
--- a/repoze/bfg/router.py
+++ b/repoze/bfg/router.py
@@ -231,7 +231,7 @@ class Router(object):
)
logger and logger.debug(msg)
else:
- msg = request.url
+ msg = request.path_info
environ['repoze.bfg.message'] = msg
return respond(self.notfound_view(context, request),
'<INotFoundView>')