Skip to content

Commit

Permalink
Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.env…
Browse files Browse the repository at this point in the history
…iron. Thanks, michael.mcewan

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Nov 26, 2005
1 parent 46c49a8 commit 5676d5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -62,6 +62,7 @@ answer newbie questions, and generally made Django that much better:
mark@junklight.com mark@junklight.com
mattycakes@gmail.com mattycakes@gmail.com
Jason McBrayer <http://www.carcosa.net/jason/> Jason McBrayer <http://www.carcosa.net/jason/>
michael.mcewan@gmail.com
mmarshall mmarshall
Eric Moritz <http://eric.themoritzfamily.com/> Eric Moritz <http://eric.themoritzfamily.com/>
Robin Munn <http://www.geekforgod.com/> Robin Munn <http://www.geekforgod.com/>
Expand Down
3 changes: 2 additions & 1 deletion django/core/handlers/wsgi.py
Expand Up @@ -81,7 +81,8 @@ def _get_request(self):


def _get_get(self): def _get_get(self):
if not hasattr(self, '_get'): if not hasattr(self, '_get'):
self._get = httpwrappers.QueryDict(self.environ['QUERY_STRING']) # The WSGI spec says 'QUERY_STRING' may be absent.
self._get = httpwrappers.QueryDict(self.environ.get('QUERY_STRING', ''))
return self._get return self._get


def _set_get(self, get): def _set_get(self, get):
Expand Down

0 comments on commit 5676d5b

Please sign in to comment.