diff options
Diffstat (limited to 'Lib/wsgiref/util.py')
-rw-r--r-- | Lib/wsgiref/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/wsgiref/util.py b/Lib/wsgiref/util.py index 2686b66..937be60 100644 --- a/Lib/wsgiref/util.py +++ b/Lib/wsgiref/util.py @@ -149,8 +149,8 @@ def setup_testing_defaults(environ): environ.setdefault('wsgi.multithread', 0) environ.setdefault('wsgi.multiprocess', 0) - from io import StringIO - environ.setdefault('wsgi.input', StringIO("")) + from io import StringIO, BytesIO + environ.setdefault('wsgi.input', BytesIO()) environ.setdefault('wsgi.errors', StringIO()) environ.setdefault('wsgi.url_scheme',guess_scheme(environ)) |