summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark McClain <mark.mcclain@shootq.com>2011-09-29 21:08:27 -0400
committerMark McClain <mark.mcclain@shootq.com>2011-09-29 21:08:27 -0400
commitcdaa1cc3e53903d67a740b29603cf038200ac703 (patch)
treea3117484b47103fb57a4dc7e7fe57efc024d8df8
parentd19d04ff9be4846c0e3585bbeda0aed76f0b06eb (diff)
downloadpecan-cdaa1cc3e53903d67a740b29603cf038200ac703.tar.gz
params are tuples so encode each individually
-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),
}