Add META['SCRIPT_NAME'] for backwards compat

This commit is contained in:
Andrew Godwin 2016-02-20 22:47:35 +00:00
parent 31447a4641
commit 171b9d8552

View File

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