Browse Source

Refactoring for Django minor versions.

django-2.1.8^2
silent 3 years ago
parent
commit
0aba6ca3bf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ws4redis/django_runserver.py

+ 1
- 1
ws4redis/django_runserver.py View File

@ -95,7 +95,7 @@ class WebsocketRunServer(WebsocketWSGIServer):
logger.debug('WebSocket request accepted, switching protocols')
start_response(force_str('101 Switching Protocols'), headers)
six.get_method_self(start_response).finish_content()
if (django.VERSION[:3] > (2,1,4)):
if (django.VERSION[:3] >= (2,1,5)):
wsgi_input = environ['wsgi.input'].stream
else:
wsgi_input = environ['wsgi.input']


Loading…
Cancel
Save