diff options
| author | Gael Pasgrimaud <gael@gawel.org> | 2012-12-19 21:42:33 +0100 |
|---|---|---|
| committer | Gael Pasgrimaud <gael@gawel.org> | 2012-12-19 21:42:33 +0100 |
| commit | 0915cb8a0c877ce8d48ad6c10d85b854313a4165 (patch) | |
| tree | 6374e6e72ec388fc1f4e614b629670323a14db70 /webtest/debugapp.py | |
| parent | fd6e6b3aeb355fa0a2f644201ed9a6685fb826ce (diff) | |
| download | webtest-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.py | 3 |
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() |
