Code

Ticket #3414: path_info_wsgi.diff

File path_info_wsgi.diff, 563 bytes (added by Gabriel Sean Farrell <gsf@…>, 6 years ago)
Line 
1Index: django/core/handlers/wsgi.py
2===================================================================
3--- django/core/handlers/wsgi.py        (revision 7238)
4+++ django/core/handlers/wsgi.py        (working copy)
5@@ -75,7 +75,7 @@
6 class WSGIRequest(http.HttpRequest):
7     def __init__(self, environ):
8         self.environ = environ
9-        self.path = force_unicode(environ['PATH_INFO'])
10+        self.path = force_unicode(environ['SCRIPT_NAME'] + environ['PATH_INFO'])
11         self.META = environ
12         self.method = environ['REQUEST_METHOD'].upper()
13