mirror of
https://github.com/django/daphne.git
synced 2025-07-14 09:52:17 +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 = {
|
self.META = {
|
||||||
"REQUEST_METHOD": self.method,
|
"REQUEST_METHOD": self.method,
|
||||||
"QUERY_STRING": self.message.get('query_string', ''),
|
"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):
|
if self.message.get('client', None):
|
||||||
self.META['REMOTE_ADDR'] = self.message['client'][0]
|
self.META['REMOTE_ADDR'] = self.message['client'][0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user