summaryrefslogtreecommitdiff
path: root/webtest/debugapp.py
diff options
context:
space:
mode:
authorGael Pasgrimaud <gael@gawel.org>2012-12-19 21:42:33 +0100
committerGael Pasgrimaud <gael@gawel.org>2012-12-19 21:42:33 +0100
commit0915cb8a0c877ce8d48ad6c10d85b854313a4165 (patch)
tree6374e6e72ec388fc1f4e614b629670323a14db70 /webtest/debugapp.py
parentfd6e6b3aeb355fa0a2f644201ed9a6685fb826ce (diff)
downloadwebtest-0915cb8a0c877ce8d48ad6c10d85b854313a4165.tar.gz
we need string in headers, not unicode. expose waitress's tracebacks by default
Diffstat (limited to 'webtest/debugapp.py')
-rw-r--r--webtest/debugapp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/webtest/debugapp.py b/webtest/debugapp.py
index dd82507..38c8c07 100644
--- a/webtest/debugapp.py
+++ b/webtest/debugapp.py
@@ -45,6 +45,9 @@ def debug_app(environ, start_response):
for name, value in req.GET.items():
if name.startswith('header-'):
header_name = name[len('header-'):]
+ if isinstance(header_name, six.text_type):
+ header_name = str(header_name)
+ header_name = header_name.title()
headers.append((header_name, str(value)))
resp = webob.Response()