summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Deza <alfredodeza@gmail.com>2013-02-03 09:30:04 -0500
committerAlfredo Deza <alfredodeza@gmail.com>2013-02-03 09:30:04 -0500
commit2124e5e6cd3c2c4f077614c3334f956d1a86d4c4 (patch)
treeff09c75e61378c5f8914065332843b2ac44957e3
parent78b1aece2b6c0c3fbdb9fba040a3cdb245cfa08c (diff)
downloadpecan-2124e5e6cd3c2c4f077614c3334f956d1a86d4c4.tar.gz
use path_info instead of path
-rw-r--r--pecan/core.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pecan/core.py b/pecan/core.py
index a31dd9d..3f22d79 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -363,8 +363,9 @@ class Pecan(object):
# get a sorted list of hooks, by priority (no controller hooks yet)
state.hooks = self.determine_hooks()
- # store the routing path to allow hooks to modify it
- request.pecan['routing_path'] = request.path
+ # store the routing path for the current application to allow hooks to
+ # modify it
+ request.pecan['routing_path'] = request.path_info
# handle "on_route" hooks
self.handle_hooks('on_route', state)