diff options
author | Mark McClain <mark.mcclain@shootq.com> | 2011-09-29 21:08:27 -0400 |
---|---|---|
committer | Mark McClain <mark.mcclain@shootq.com> | 2011-09-29 21:08:27 -0400 |
commit | cdaa1cc3e53903d67a740b29603cf038200ac703 (patch) | |
tree | a3117484b47103fb57a4dc7e7fe57efc024d8df8 | |
parent | d19d04ff9be4846c0e3585bbeda0aed76f0b06eb (diff) | |
download | pecan-cdaa1cc3e53903d67a740b29603cf038200ac703.tar.gz |
params are tuples so encode each individually
-rw-r--r-- | pecan/hooks.py | 2 |
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), } |