diff --git a/channels/handler.py b/channels/handler.py index 27ff2e4..80faec1 100644 --- a/channels/handler.py +++ b/channels/handler.py @@ -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,