Skip to content

Commit d408e2a

Browse files
authored
Update django_runserver.py
stream attribute of LimitedStream removed from core.wsgi in Django 4
1 parent 3b26de8 commit d408e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ws4redis/django_runserver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def upgrade_websocket(self, environ, start_response):
9898
logger.debug('WebSocket request accepted, switching protocols')
9999
start_response(force_str('101 Switching Protocols'), headers)
100100
six.get_method_self(start_response).finish_content()
101-
if (django.VERSION[:3] >= (2,1,5)):
101+
if (2, 1, 5) <= django.VERSION[:3] < (4, 2, 0):
102102
wsgi_input = environ['wsgi.input'].stream
103103
else:
104104
wsgi_input = environ['wsgi.input']

0 commit comments

Comments
 (0)