From 5348c527780099ecf919543c18841b8cfb230b4f Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 2 Jan 2016 18:35:43 -0800 Subject: [PATCH] Fixed #33: Add wsgi.multi* variables for back compat. --- channels/handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/channels/handler.py b/channels/handler.py index 4913f8d..33068a5 100644 --- a/channels/handler.py +++ b/channels/handler.py @@ -36,6 +36,9 @@ class AsgiRequest(http.HttpRequest): self.META = { "REQUEST_METHOD": self.method, "QUERY_STRING": self.message.get('query_string', ''), + # Old code will need these for a while + "wsgi.multithread": True, + "wsgi.multiprocess": True, } if self.message.get('client', None): self.META['REMOTE_ADDR'] = self.message['client'][0]