Ticket #1641: wsgi_handler_fix_r2714.diff

File wsgi_handler_fix_r2714.diff, 678 bytes (added by django@…, 18 years ago)

patch makes WSGI handler cope with absent QUERY_STRING

  • wsgi.py

    === wsgi.py
    ==================================================================
     
    6363            pformat(self.META))
    6464
    6565    def get_full_path(self):
    66         return '%s%s' % (self.path, self.environ['QUERY_STRING'] and ('?' + self.environ['QUERY_STRING']) or '')
     66        return '%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + self.environ.get('QUERY_STRING', '')) or '')
    6767
    6868    def _load_post_and_files(self):
    6969        # Populates self._post and self._files
Back to Top