Add conventional request.META['PATH_INFO'] - fixes benjaoming/django-nyt#27 (#375)

This commit is contained in:
Benjamin Bach 2016-09-22 22:57:30 +02:00 committed by Andrew Godwin
parent 58cc3c845d
commit 06fd1f8ada

View File

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