diff options
| author | Laurence Rowe <l@lrowe.co.uk> | 2014-12-19 14:30:17 -0800 |
|---|---|---|
| committer | Laurence Rowe <laurence@lrowe.co.uk> | 2014-12-19 14:58:45 -0800 |
| commit | 6f5ffc80d0ebc8b1e0f6794d4f9640010e1fb758 (patch) | |
| tree | 243add8eb5628e23e85a0f13aed5ff3a4c2aea00 | |
| parent | 4296f75fa2dc3423ba2c071831c5613924c6ffd5 (diff) | |
| download | webtest-6f5ffc80d0ebc8b1e0f6794d4f9640010e1fb758.tar.gz | |
Avoid raising encoding errors from debugapp
This is needed to write WSGIProxy2 tests with quoted utf8 paths.
| -rw-r--r-- | webtest/debugapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/debugapp.py b/webtest/debugapp.py index 60b4435..dd05fbc 100644 --- a/webtest/debugapp.py +++ b/webtest/debugapp.py @@ -46,7 +46,7 @@ class DebugApp(object): body = ''.join(parts) if not isinstance(body, six.binary_type): - body = body.encode('ascii') + body = body.encode('latin1') if req.content_length: body += six.b('-- Body ----------\n') |
