summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark McClain <mark.mcclain@shootq.com>2011-09-29 19:38:06 -0400
committerMark McClain <mark.mcclain@shootq.com>2011-09-29 19:38:06 -0400
commitd19d04ff9be4846c0e3585bbeda0aed76f0b06eb (patch)
tree715b1def160e2ee6d60e6af4906d7acf5d25142f
parent8882c17986ebb646cbc206f549f45f08f0a1e636 (diff)
downloadpecan-d19d04ff9be4846c0e3585bbeda0aed76f0b06eb.tar.gz
update to use the correct param key and encode into utf-8
-rw-r--r--pecan/hooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pecan/hooks.py b/pecan/hooks.py
index e8848b7..470ced1 100644
--- a/pecan/hooks.py
+++ b/pecan/hooks.py
@@ -249,7 +249,7 @@ class RequestViewerHook(PecanHook):
'controller' : lambda self, state: self.get_controller(state),
'method' : lambda self, state: state.request.method,
'path' : lambda self, state: state.request.path,
- 'params' : lambda self, state: state.request.str_params.items(),
+ 'params' : lambda self, state: [p.encode('utf-8') for p in state.request.params.items()],
'status' : lambda self, state: state.response.status,
'hooks' : lambda self, state: self.format_hooks(state.app.hooks),
}