Fixed #33: Add wsgi.multi* variables for back compat.

This commit is contained in:
Andrew Godwin 2016-01-02 18:35:43 -08:00
parent 3dec8e09b3
commit 5348c52778

View File

@ -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]