Django

Code

Changeset 1442

Show
Ignore:
Timestamp:
11/26/05 12:41:29 (2 years ago)
Author:
adrian
Message:

Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.environ. Thanks, michael.mcewan

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r1429 r1442  
    6363    mattycakes@gmail.com 
    6464    Jason McBrayer <http://www.carcosa.net/jason/> 
     65    michael.mcewan@gmail.com 
    6566    mmarshall 
    6667    Eric Moritz <http://eric.themoritzfamily.com/> 
  • django/trunk/django/core/handlers/wsgi.py

    r786 r1442  
    8282    def _get_get(self): 
    8383        if not hasattr(self, '_get'): 
    84             self._get = httpwrappers.QueryDict(self.environ['QUERY_STRING']) 
     84            # The WSGI spec says 'QUERY_STRING' may be absent. 
     85            self._get = httpwrappers.QueryDict(self.environ.get('QUERY_STRING', '')) 
    8586        return self._get 
    8687