mirror of
https://github.com/django/daphne.git
synced 2025-04-21 17:22:03 +03:00
Fixed #33: Add wsgi.multi* variables for back compat.
This commit is contained in:
parent
3dec8e09b3
commit
5348c52778
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user