Ticket #3414: wsgi_path_from_many_params.diff
File wsgi_path_from_many_params.diff, 790 bytes (added by , 17 years ago) |
---|
-
django/core/handlers/wsgi.py
74 74 class WSGIRequest(http.HttpRequest): 75 75 def __init__(self, environ): 76 76 self.environ = environ 77 self.path = force_unicode(environ['PATH_INFO']) 77 if environ['PATH_INFO']: 78 self.path = force_unicode(environ['PATH_INFO']) 79 elif environ.has_key('REDIRECT_URL') and environ['REDIRECT_URL']: 80 self.path = force_unicode(environ['REDIRECT_URL']) 81 else: 82 self.path = force_unicode(environ.get('REQUEST_URI', '/')) 78 83 self.META = environ 79 84 self.method = environ['REQUEST_METHOD'].upper() 80 85