Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.env…

…iron. Thanks, michael.mcewan

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5676d5b068909a699e798575e8a6a4492ff27af8 1 parent 46c49a8
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 1 deletion.
  1. +1 −0  AUTHORS
  2. +2 −1  django/core/handlers/wsgi.py
View
1  AUTHORS
@@ -62,6 +62,7 @@ answer newbie questions, and generally made Django that much better:
mark@junklight.com
mattycakes@gmail.com
Jason McBrayer <http://www.carcosa.net/jason/>
+ michael.mcewan@gmail.com
mmarshall
Eric Moritz <http://eric.themoritzfamily.com/>
Robin Munn <http://www.geekforgod.com/>
View
3  django/core/handlers/wsgi.py
@@ -81,7 +81,8 @@ def _get_request(self):
def _get_get(self):
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
def _set_get(self, get):
Please sign in to comment.
Something went wrong with that request. Please try again.