From 171b9d8552ee80d3d8615211451aa2862f696b8f Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 20 Feb 2016 22:47:35 +0000 Subject: [PATCH] Add META['SCRIPT_NAME'] for backwards compat --- channels/handler.py | 1 + 1 file changed, 1 insertion(+) 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,