summaryrefslogtreecommitdiff
path: root/pecan/pecan.py
diff options
context:
space:
mode:
Diffstat (limited to 'pecan/pecan.py')
-rw-r--r--pecan/pecan.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pecan/pecan.py b/pecan/pecan.py
index 1ae605c..a45e989 100644
--- a/pecan/pecan.py
+++ b/pecan/pecan.py
@@ -156,6 +156,9 @@ class Pecan(MonitorableProcess):
im_self = controller.im_self
handlers = controller.pecan['generic_handlers']
controller = handlers.get(request.method, handlers['DEFAULT'])
+
+ # add the controller to the state so that hooks can use it
+ state.controller = controller
# determine content type
if content_type is None: