From 06fd1f8ada1e4ab51de0577bc5fc15fd733abd86 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Thu, 22 Sep 2016 22:57:30 +0200 Subject: [PATCH] Add conventional request.META['PATH_INFO'] - fixes benjaoming/django-nyt#27 (#375) --- channels/handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/handler.py b/channels/handler.py index 4e1c73d..5015902 100644 --- a/channels/handler.py +++ b/channels/handler.py @@ -55,6 +55,7 @@ class AsgiRequest(http.HttpRequest): "REQUEST_METHOD": self.method, "QUERY_STRING": self.message.get('query_string', ''), "SCRIPT_NAME": self.script_name, + "PATH_INFO": self.path_info, # Old code will need these for a while "wsgi.multithread": True, "wsgi.multiprocess": True,