summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pecan/hooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pecan/hooks.py b/pecan/hooks.py
index 470ced1..535c2bb 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: [p.encode('utf-8') for p in state.request.params.items()],
+ 'params' : lambda self, state: [(p[0].encode('utf-8'), p[1].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),
}