mirror of
https://github.com/django/daphne.git
synced 2025-07-11 00:12:18 +03:00
Add META['SCRIPT_NAME'] for backwards compat
This commit is contained in:
parent
31447a4641
commit
171b9d8552
|
@ -50,6 +50,7 @@ class AsgiRequest(http.HttpRequest):
|
|||
self.META = {
|
||||
"REQUEST_METHOD": self.method,
|
||||
"QUERY_STRING": self.message.get('query_string', b'').decode("ascii"),
|
||||
"SCRIPT_NAME": self.script_name.decode("ascii"),
|
||||
# Old code will need these for a while
|
||||
"wsgi.multithread": True,
|
||||
"wsgi.multiprocess": True,
|
||||
|
|
Loading…
Reference in New Issue
Block a user