Skip to content

Commit 29b108b

Browse files
authored
Fixed #529: wsgi.errors should be a StringIO (#530)
1 parent fbe9506 commit 29b108b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asgiref/wsgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from io import BytesIO
1+
import sys
22
from tempfile import SpooledTemporaryFile
33

44
from asgiref.sync import AsyncToSync, sync_to_async
@@ -67,7 +67,7 @@ def build_environ(self, scope, body):
6767
"wsgi.version": (1, 0),
6868
"wsgi.url_scheme": scope.get("scheme", "http"),
6969
"wsgi.input": body,
70-
"wsgi.errors": BytesIO(),
70+
"wsgi.errors": sys.stderr,
7171
"wsgi.multithread": True,
7272
"wsgi.multiprocess": True,
7373
"wsgi.run_once": False,

0 commit comments

Comments
 (0)