summaryrefslogtreecommitdiff
path: root/pecan/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'pecan/core.py')
-rw-r--r--pecan/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pecan/core.py b/pecan/core.py
index ad32525..141e7c3 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -423,7 +423,7 @@ class PecanBase(object):
# store the routing path for the current application to allow hooks to
# modify it
- pecan_state['routing_path'] = path = req.encget('PATH_INFO')
+ pecan_state['routing_path'] = path = req.path_info
# handle "on_route" hooks
self.handle_hooks(self.hooks, 'on_route', state)
@@ -538,7 +538,7 @@ class PecanBase(object):
# handle "before" hooks
self.handle_hooks(self.determine_hooks(controller), 'before', state)
- return controller, args+varargs, kwargs
+ return controller, args + varargs, kwargs
def invoke_controller(self, controller, args, kwargs, state):
'''