Code

Ticket #3414: wsgi.patch

File wsgi.patch, 478 bytes (added by Jordi Funollet <jordi.f@…>, 7 years ago)
  • django/core/handlers/

    old new  
    76         self.path = environ['PATH_INFO'] 
     76        if environ['PATH_INFO']: 
     77            self.path = environ['PATH_INFO'] 
     78        elif environ.has_key('REDIRECT_URL') and environ['REDIRECT_URL']: 
     79            self.path = environ['REDIRECT_URL'] 
     80        else: 
     81            self.path = environ.get('REQUEST_URI', '/')